xray setting enhancements #1286

This commit is contained in:
Alireza Ahmadi
2023-12-05 18:13:36 +01:00
parent 4d3bea48e1
commit c419eadf15
36 changed files with 46901 additions and 189 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)) {