mirror of
https://github.com/MrUnknownDE/VRCX.git
synced 2026-04-29 11:43:48 +02:00
Random fixes
This commit is contained in:
@@ -76,6 +76,13 @@ export const useVrcStatusStore = defineStore('VrcStatus', () => {
|
||||
});
|
||||
lastTimeFetched.value = Date.now();
|
||||
const data = JSON.parse(response.data);
|
||||
if (response.status !== 200) {
|
||||
console.error('Failed to fetch VRChat status', response);
|
||||
lastStatus.value = 'Failed to fetch VRC status';
|
||||
pollingInterval.value = 2 * 60 * 1000; // 2 minutes
|
||||
updateAlert();
|
||||
return;
|
||||
}
|
||||
lastStatusTime.value = new Date(data.page.updated_at);
|
||||
if (data.status.description === 'All Systems Operational') {
|
||||
lastStatus.value = '';
|
||||
@@ -97,6 +104,10 @@ export const useVrcStatusStore = defineStore('VrcStatus', () => {
|
||||
Referer: 'https://vrcx.app'
|
||||
}
|
||||
});
|
||||
if (response.status !== 200) {
|
||||
console.error('Failed to fetch VRChat status summary', response);
|
||||
return;
|
||||
}
|
||||
const data = JSON.parse(response.data);
|
||||
let summary = '';
|
||||
for (const component of data.components) {
|
||||
|
||||
Reference in New Issue
Block a user