Make sure the cloak is set upon page reload too
This commit is contained in:
parent
8817a12ede
commit
c654694603
1 changed files with 1 additions and 0 deletions
|
|
@ -1,6 +1,7 @@
|
||||||
<script>
|
<script>
|
||||||
import { cloakTab } from "@utils/settings.ts";
|
import { cloakTab } from "@utils/settings.ts";
|
||||||
// This loads the settings in a nice way
|
// This loads the settings in a nice way
|
||||||
|
cloakTab(localStorage.getItem("nebula||tabCloak") as string || "default");
|
||||||
document.addEventListener("astro:after-swap", function() {
|
document.addEventListener("astro:after-swap", function() {
|
||||||
cloakTab(localStorage.getItem("nebula||tabCloak") as string || "default");
|
cloakTab(localStorage.getItem("nebula||tabCloak") as string || "default");
|
||||||
});
|
});
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue