Fix infinite reloading

Comment these out because this used to fix an old bug with instances not loaded properly
This commit is contained in:
Lim Chee Aun 2024-04-18 23:10:26 +08:00
parent 9bf77fa97a
commit 5a448c8049

View file

@ -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 {};
}
}