websites: default: snapshot

This commit is contained in:
nym21
2025-06-09 13:05:03 +02:00
parent 93289e8fca
commit 06e7284055
41 changed files with 754 additions and 5813 deletions

View File

@@ -46,7 +46,7 @@ const importSignals = import("./v0.3.2-treeshaked/script.js").then(
createSignal(initialValue, options) {
const [get, set] = this.createSolidSignal(
/** @type {any} */ (initialValue),
options,
options
);
// @ts-ignore
@@ -64,7 +64,7 @@ const importSignals = import("./v0.3.2-treeshaked/script.js").then(
let serialized = /** @type {string | null} */ (null);
if (options.save.serializeParam !== false) {
serialized = new URLSearchParams(window.location.search).get(
paramKey,
paramKey
);
}
@@ -115,7 +115,7 @@ const importSignals = import("./v0.3.2-treeshaked/script.js").then(
};
return signals;
},
}
);
/**
@@ -131,11 +131,13 @@ function writeParam(key, value) {
urlParams.delete(key);
}
window.history.replaceState(
null,
"",
`${window.location.pathname}?${urlParams.toString()}`,
);
try {
window.history.replaceState(
null,
"",
`${window.location.pathname}?${urlParams.toString()}`
);
} catch (_) {}
}
/**