mirror of
https://github.com/MrUnknownDE/VRCX.git
synced 2026-04-18 14:23:51 +02:00
bugfix
This commit is contained in:
29
html/app.js
29
html/app.js
@@ -311,20 +311,23 @@ CefSharp.BindObjectAsync(
|
||||
text: escapeTag(json.success.message)
|
||||
}).show();
|
||||
}
|
||||
} else 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
|
||||
);
|
||||
} else {
|
||||
this.$throw(res.status, json);
|
||||
return 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;
|
||||
}));
|
||||
if (isGetRequest) {
|
||||
|
||||
29
html/vr.js
29
html/vr.js
@@ -248,20 +248,23 @@ CefSharp.BindObjectAsync(
|
||||
text: escapeTag(json.success.message)
|
||||
}).show();
|
||||
}
|
||||
} else 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
|
||||
);
|
||||
} else {
|
||||
this.$throw(res.status, json);
|
||||
return 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;
|
||||
}));
|
||||
if (isGetRequest) {
|
||||
|
||||
Reference in New Issue
Block a user