mirror of
https://github.com/MrUnknownDE/VRCX.git
synced 2026-05-07 14:56:06 +02:00
dontLogMeOut flag
This commit is contained in:
+10
-6
@@ -10341,6 +10341,8 @@ speechSynthesis.getVoices();
|
|||||||
this.feedTable.loading = false;
|
this.feedTable.loading = false;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
$app.data.dontLogMeOut = false;
|
||||||
|
|
||||||
API.$on('LOGIN', async function (args) {
|
API.$on('LOGIN', async function (args) {
|
||||||
$app.friendLog = new Map();
|
$app.friendLog = new Map();
|
||||||
$app.feedTable.data = [];
|
$app.feedTable.data = [];
|
||||||
@@ -10373,12 +10375,14 @@ speechSynthesis.getVoices();
|
|||||||
await $app.initFriendLog(args.json.id);
|
await $app.initFriendLog(args.json.id);
|
||||||
}
|
}
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
$app.$message({
|
if (!$app.dontLogMeOut) {
|
||||||
message: 'Failed to load freinds list, logging out',
|
$app.$message({
|
||||||
type: 'error'
|
message: 'Failed to load freinds list, logging out',
|
||||||
});
|
type: 'error'
|
||||||
this.logout();
|
});
|
||||||
throw err;
|
this.logout();
|
||||||
|
throw err;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
$app.getAvatarHistory();
|
$app.getAvatarHistory();
|
||||||
$app.getAllMemos();
|
$app.getAllMemos();
|
||||||
|
|||||||
Reference in New Issue
Block a user