why do i keep doing this

This commit is contained in:
afn
2023-03-16 17:20:21 -04:00
parent 175d77f107
commit a8645caf6f

View File

@@ -100,17 +100,17 @@
// update ui
logos = logos;
// if (location.hash !== '') {
// try {
// await exchange_token(location.hash.substring(1));
// } catch (err) {
// alert(`Could not exchange the token: ${err}`);
// }
// } else if (localStorage.getItem('killswitch') === null) {
// await goto('/poll/unauthorized/');
// } else {
// alert('Warning: no token!');
// }
if (location.hash !== '') {
try {
await exchange_token(location.hash.substring(1));
} catch (err) {
alert(`Could not exchange the token: ${err}`);
}
} else if (localStorage.getItem('killswitch') === null) {
await goto('/poll/unauthorized/');
} else {
alert('Warning: no token!');
}
});
function preloadImage(url: string) {