correctly gets unredactor
All checks were successful
Rebuild signaller for deprived.dev to rebuild site / test_service (push) Successful in 15s
All checks were successful
Rebuild signaller for deprived.dev to rebuild site / test_service (push) Successful in 15s
This commit is contained in:
parent
47cea68e04
commit
5e1cf0a83b
2 changed files with 16 additions and 8 deletions
|
|
@ -23,13 +23,17 @@
|
|||
navbarHidden = true;
|
||||
}
|
||||
|
||||
import { afterNavigate } from "$app/navigation";
|
||||
afterNavigate(() => {
|
||||
function handleUrlParams() {
|
||||
const params = new URLSearchParams(window.location.search);
|
||||
hideOnPrint = params.get("hideOnPrint") === "1";
|
||||
if (!!params.get("key")) {
|
||||
localStorage.setItem("key", params.get("key")!);
|
||||
}
|
||||
}
|
||||
|
||||
import { afterNavigate } from "$app/navigation";
|
||||
afterNavigate(() => {
|
||||
handleUrlParams();
|
||||
});
|
||||
|
||||
import onMount from "@e/onMount";
|
||||
|
|
@ -37,10 +41,13 @@
|
|||
import CustomScrollBar from "./comps/CustomScrollBar.svelte";
|
||||
|
||||
onMount(async () => {
|
||||
handleUrlParams();
|
||||
|
||||
const lock = document.createElement("meta");
|
||||
lock.name = "darkreader-lock";
|
||||
document.head.appendChild(lock);
|
||||
re.TryGetUnredacter();
|
||||
|
||||
console.log(await re.TryGetUnredacter());
|
||||
});
|
||||
|
||||
function nextTheme() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue