From 4c0410cfd795bd1dc856db64c5c726bcf24648bc Mon Sep 17 00:00:00 2001 From: axtloss Date: Sun, 25 Aug 2024 21:55:31 +0200 Subject: fix anti brave --- src/routes/+layout.svelte | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'src/routes/+layout.svelte') 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 @@ + import { onMount } from "svelte"; + onMount(async () => { + if( navigator.brave && await navigator.brave.isBrave() || !1 ) { + window.location.href="/not-very-brave.html" + } + }); +
-- cgit v1.2.3