mirror of
https://github.com/MrUnknownDE/VRCX.git
synced 2026-05-06 22:46:06 +02:00
Fix game info, online users
This commit is contained in:
+19
-21
@@ -377,28 +377,26 @@ import gameLogService from './service/gamelog.js'
|
|||||||
}
|
}
|
||||||
this.$throw(res.status);
|
this.$throw(res.status);
|
||||||
}).then(({ data, status }) => {
|
}).then(({ data, status }) => {
|
||||||
if (data === Object(data)) {
|
if (status === 200) {
|
||||||
if (status === 200) {
|
if (data.success === Object(data.success)) {
|
||||||
if (data.success === Object(data.success)) {
|
new Noty({
|
||||||
new Noty({
|
type: 'success',
|
||||||
type: 'success',
|
text: escapeTag(data.success.message)
|
||||||
text: escapeTag(data.success.message)
|
}).show();
|
||||||
}).show();
|
|
||||||
}
|
|
||||||
return data;
|
|
||||||
}
|
|
||||||
if (data.error === Object(data.error)) {
|
|
||||||
this.$throw(
|
|
||||||
data.error.status_code || status,
|
|
||||||
data.error.message,
|
|
||||||
data.error.data
|
|
||||||
);
|
|
||||||
} else if (typeof data.error === 'string') {
|
|
||||||
this.$throw(
|
|
||||||
data.status_code || status,
|
|
||||||
data.error
|
|
||||||
);
|
|
||||||
}
|
}
|
||||||
|
return data;
|
||||||
|
}
|
||||||
|
if (data.error === Object(data.error)) {
|
||||||
|
this.$throw(
|
||||||
|
data.error.status_code || status,
|
||||||
|
data.error.message,
|
||||||
|
data.error.data
|
||||||
|
);
|
||||||
|
} else if (typeof data.error === 'string') {
|
||||||
|
this.$throw(
|
||||||
|
data.status_code || status,
|
||||||
|
data.error
|
||||||
|
);
|
||||||
}
|
}
|
||||||
this.$throw(status, data);
|
this.$throw(status, data);
|
||||||
return data;
|
return data;
|
||||||
|
|||||||
Reference in New Issue
Block a user