diff --git a/src/routes/+layout.svelte b/src/routes/+layout.svelte index c674970..4774c9c 100644 --- a/src/routes/+layout.svelte +++ b/src/routes/+layout.svelte @@ -21,6 +21,13 @@ hideOnPrint = params.get('hideOnPrint') === '1'; //console.log(hideOnPrint); }); + + import { onMount } from 'svelte'; + onMount(() => { + const lock = document.createElement('meta'); + lock.name = 'darkreader-lock'; + document.head.appendChild(lock); + });