mirror of
https://github.com/revanced/revanced-website.git
synced 2025-04-29 22:24:31 +02:00
chore: check for dev environment for unauth page
This commit is contained in:
parent
e9746c5734
commit
e8077c8cf4
@ -7,6 +7,7 @@
|
||||
import LogoOption from '$lib/components/atoms/LogoOption.svelte';
|
||||
import Button from '$lib/components/atoms/Button.svelte';
|
||||
import { goto } from '$app/navigation';
|
||||
import { dev } from '$app/environment';
|
||||
|
||||
import questionMark from '$lib/assets/icons/help.svg';
|
||||
import trash from '$lib/assets/icons/delete.svg';
|
||||
@ -86,7 +87,7 @@
|
||||
} catch (err) {
|
||||
alert(`Could not exchange the token: ${err}`);
|
||||
}
|
||||
} else if (localStorage.getItem('killswitch') === null) {
|
||||
} else if (!dev) {
|
||||
await goto('/poll/unauthorized/');
|
||||
} else {
|
||||
alert('Warning: no token!');
|
||||
|
Loading…
x
Reference in New Issue
Block a user