Merge branch 'main' into gh-pages

This commit is contained in:
Parker TenBroeck 2026-01-10 12:16:03 -05:00
commit 144ee94544

View file

@ -21,6 +21,7 @@ btn.addEventListener("click", async () => {
export function sharedText(): string|null { export function sharedText(): string|null {
try{
const url = new URL(globalThis.window.location.href); const url = new URL(globalThis.window.location.href);
let text: string | null = url.searchParams.get("share"); let text: string | null = url.searchParams.get("share");
if (text !== null) { if (text !== null) {
@ -33,4 +34,8 @@ export function sharedText(): string|null {
); );
} }
return text; return text;
}catch(e){
console.log(e)
}
return null;
} }