Make sure the cloak is set upon page reload too

This commit is contained in:
MotorTruck1221 2024-09-29 04:45:24 -06:00
parent 8817a12ede
commit c654694603
No known key found for this signature in database
GPG key ID: 08F417E2B8B61EA4

View file

@ -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");
}); });