diff options
author | axtloss <axtlos@disroot.org> | 2024-08-25 21:55:31 +0200 |
---|---|---|
committer | axtloss <axtlos@disroot.org> | 2024-08-25 21:55:31 +0200 |
commit | 4c0410cfd795bd1dc856db64c5c726bcf24648bc (patch) | |
tree | 59b0aea17d490768e1bb420db7dfc7847a4a90d3 /src/routes/+layout.svelte | |
parent | b6c6b705c15ff02e26eb5463a8b1550fa131ee38 (diff) | |
download | website-4c0410cfd795bd1dc856db64c5c726bcf24648bc.tar.gz website-4c0410cfd795bd1dc856db64c5c726bcf24648bc.tar.bz2 |
fix anti brave
Diffstat (limited to 'src/routes/+layout.svelte')
-rw-r--r-- | src/routes/+layout.svelte | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/routes/+layout.svelte b/src/routes/+layout.svelte index 7772574..ad34a2e 100644 --- a/src/routes/+layout.svelte +++ b/src/routes/+layout.svelte @@ -1,8 +1,14 @@ <script lang="ts"> import Header from './Header.svelte'; import './styles.scss'; -</script> + import { onMount } from "svelte"; + onMount(async () => { + if( navigator.brave && await navigator.brave.isBrave() || !1 ) { + window.location.href="/not-very-brave.html" + } + }); +</script> <div class="app"> <Header> <main> |