From 94d3d722aee7a10a04f04b7dd3b1cf2bdf4dc917 Mon Sep 17 00:00:00 2001 From: BOTAlex Date: Mon, 10 Jun 2024 14:24:41 +0200 Subject: [PATCH] Disables the dark reader --- src/routes/+layout.svelte | 7 +++++++ 1 file changed, 7 insertions(+) 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); + });