diff options
Diffstat (limited to 'src/lib/Error')
| -rw-r--r-- | src/lib/Error/LogInRestricted.svelte | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/src/lib/Error/LogInRestricted.svelte b/src/lib/Error/LogInRestricted.svelte new file mode 100644 index 00000000..353a941d --- /dev/null +++ b/src/lib/Error/LogInRestricted.svelte @@ -0,0 +1,18 @@ +<script> + import Popup from '$lib/Popup.svelte'; + import { env } from '$env/dynamic/public'; +</script> + +<Popup fullscreen locked> + <div class="message"> + Please <a + href={`https://anilist.co/api/v2/oauth/authorize?client_id=${env.PUBLIC_ANILIST_CLIENT_ID}&redirect_uri=${env.PUBLIC_ANILIST_REDIRECT_URI}&response_type=code`} + on:click={() => { + localStorage.setItem( + 'redirect', + window.location.origin + window.location.pathname + window.location.search + ); + }}>log in</a + > to view this page. + </div> +</Popup> |