fix: uncomment unauthorized page code (again)

This commit is contained in:
afn 2023-03-18 21:01:44 -04:00
parent a006605b19
commit e9746c5734

View File

@ -80,17 +80,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) {