Optimizing loading of script files

This commit is contained in:
Alireza Ahmadi
2023-11-19 04:00:41 +01:00
parent 0dbb67d0bb
commit cfc11151d2
8 changed files with 82 additions and 79 deletions

View File

@@ -1,3 +1,21 @@
class Msg {
constructor(success, msg, obj) {
this.success = false;
this.msg = "";
this.obj = null;
if (success != null) {
this.success = success;
}
if (msg != null) {
this.msg = msg;
}
if (obj != null) {
this.obj = obj;
}
}
}
class HttpUtil {
static _handleMsg(msg) {
if (!(msg instanceof Msg)) {