Fix infinite reloading

Comment these out because this used to fix an old bug with instances not loaded properly
pull/506/head
Lim Chee Aun 2024-04-18 23:10:26 +08:00
rodzic 9bf77fa97a
commit 5a448c8049
1 zmienionych plików z 3 dodań i 3 usunięć

Wyświetl plik

@ -107,10 +107,10 @@ export function getCurrentInstance() {
return (currentInstance = instances[instance]);
} catch (e) {
console.error(e);
alert(`Failed to load instance configuration. Please try again.\n\n${e}`);
// alert(`Failed to load instance configuration. Please try again.\n\n${e}`);
// Temporary fix for corrupted data
store.local.del('instances');
location.reload();
// store.local.del('instances');
// location.reload();
return {};
}
}