diff --git a/README.md b/README.md index b06ce2a..eb52b2d 100644 --- a/README.md +++ b/README.md @@ -45,24 +45,6 @@ To enable this, set the `themeColor` prop to your preferred colors: ``` -Note that for this to work, you must have added the `theme-color` meta tag to your `head` element in `app.html`: - -```diff - - - - -+ - - - %sveltekit.head% - - -
%sveltekit.body%
- - -``` - ## API ### toggleMode diff --git a/src/app.html b/src/app.html index 3653204..d2fc6b0 100644 --- a/src/app.html +++ b/src/app.html @@ -2,7 +2,6 @@ - %sveltekit.head% diff --git a/src/lib/mode-watcher.svelte b/src/lib/mode-watcher.svelte index fa7450d..3f42d60 100644 --- a/src/lib/mode-watcher.svelte +++ b/src/lib/mode-watcher.svelte @@ -54,6 +54,12 @@ + {#if themeColors} + + + + + {/if} {@html ``} diff --git a/src/tests/Mode.svelte b/src/tests/Mode.svelte index fc1a4aa..8a94510 100644 --- a/src/tests/Mode.svelte +++ b/src/tests/Mode.svelte @@ -4,10 +4,6 @@ export let track = true; - - - - {$mode} diff --git a/src/tests/StealthMode.svelte b/src/tests/StealthMode.svelte index 675300c..00e22df 100644 --- a/src/tests/StealthMode.svelte +++ b/src/tests/StealthMode.svelte @@ -4,10 +4,6 @@ export let track = true; - - - -