mirror of
https://github.com/MrUnknownDE/VRCX.git
synced 2026-05-07 06:56:04 +02:00
bugfix
This commit is contained in:
+16
-13
@@ -311,20 +311,23 @@ CefSharp.BindObjectAsync(
|
|||||||
text: escapeTag(json.success.message)
|
text: escapeTag(json.success.message)
|
||||||
}).show();
|
}).show();
|
||||||
}
|
}
|
||||||
} else if (isObject(json.error)) {
|
return json;
|
||||||
this.$throw(
|
|
||||||
json.error.status_code || res.status,
|
|
||||||
json.error.message,
|
|
||||||
json.error.data
|
|
||||||
);
|
|
||||||
} else if (typeof json.error === 'string') {
|
|
||||||
this.$throw(
|
|
||||||
json.status_code || res.status,
|
|
||||||
json.error
|
|
||||||
);
|
|
||||||
} else {
|
|
||||||
this.$throw(res.status, json);
|
|
||||||
}
|
}
|
||||||
|
if (isObject(json)) {
|
||||||
|
if (isObject(json.error)) {
|
||||||
|
this.$throw(
|
||||||
|
json.error.status_code || res.status,
|
||||||
|
json.error.message,
|
||||||
|
json.error.data
|
||||||
|
);
|
||||||
|
} else if (typeof json.error === 'string') {
|
||||||
|
this.$throw(
|
||||||
|
json.status_code || res.status,
|
||||||
|
json.error
|
||||||
|
);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
this.$throw(res.status, json);
|
||||||
return json;
|
return json;
|
||||||
}));
|
}));
|
||||||
if (isGetRequest) {
|
if (isGetRequest) {
|
||||||
|
|||||||
+16
-13
@@ -248,20 +248,23 @@ CefSharp.BindObjectAsync(
|
|||||||
text: escapeTag(json.success.message)
|
text: escapeTag(json.success.message)
|
||||||
}).show();
|
}).show();
|
||||||
}
|
}
|
||||||
} else if (isObject(json.error)) {
|
return json;
|
||||||
this.$throw(
|
|
||||||
json.error.status_code || res.status,
|
|
||||||
json.error.message,
|
|
||||||
json.error.data
|
|
||||||
);
|
|
||||||
} else if (typeof json.error === 'string') {
|
|
||||||
this.$throw(
|
|
||||||
json.status_code || res.status,
|
|
||||||
json.error
|
|
||||||
);
|
|
||||||
} else {
|
|
||||||
this.$throw(res.status, json);
|
|
||||||
}
|
}
|
||||||
|
if (isObject(json)) {
|
||||||
|
if (isObject(json.error)) {
|
||||||
|
this.$throw(
|
||||||
|
json.error.status_code || res.status,
|
||||||
|
json.error.message,
|
||||||
|
json.error.data
|
||||||
|
);
|
||||||
|
} else if (typeof json.error === 'string') {
|
||||||
|
this.$throw(
|
||||||
|
json.status_code || res.status,
|
||||||
|
json.error
|
||||||
|
);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
this.$throw(res.status, json);
|
||||||
return json;
|
return json;
|
||||||
}));
|
}));
|
||||||
if (isGetRequest) {
|
if (isGetRequest) {
|
||||||
|
|||||||
Reference in New Issue
Block a user