mirror of
https://github.com/revanced/revanced-website.git
synced 2025-04-30 06:34:35 +02:00
fix: uncomment unauthorized page code
This commit is contained in:
parent
3f441ac6f8
commit
8af94e8c3a
@ -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 previousPage() {
|
||||
|
Loading…
x
Reference in New Issue
Block a user