We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 4e197e9 + 84073e2 commit 453e278Copy full SHA for 453e278
src/lib/global.ts
@@ -89,7 +89,12 @@ document.addEventListener("astro:page-load", () => {
89
document.addEventListener("astro:page-load", () => {
90
const Key = localStorage.getItem("key") || "";
91
const PanicKeys = Key.split(",").map((key) => key.trim());
92
- const PanicLink = localStorage.getItem("link") || "";
+ let PanicLink = localStorage.getItem("link") || "";
93
+ try {
94
+ PanicLink = new URL(PanicLink).toString();
95
+ } catch (e) {
96
+ PanicLink = "";
97
+ }
98
let Typed: string[] = [];
99
let Shift = false;
100
0 commit comments