mirror of
https://github.com/ReVanced/revanced-website.git
synced 2026-01-18 08:43:56 +00:00
chore: check for dev environment for unauth page
This commit is contained in:
@@ -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!');
|
||||
|
||||
Reference in New Issue
Block a user