goes to a random website hosted on wisp.place
6
fork

Configure Feed

Select the types of activity you want to include in your feed.

choose domains properly client side

dawn 6a299e85 1be6c3bd

+5 -3
+1 -1
deno.json
··· 5 5 "start": "deno run -A --unstable-kv main.ts", 6 6 "dev": "deno run -A --unstable-kv --watch main.ts", 7 7 "build": "deno run -A build.ts", 8 - "deploy": "npm create wisp -- deploy -y --spa --path ./dist --site random did:plc:dfl62fgb7wtjj3fcbb72naae" 8 + "deploy": "deno x npm:wispctl deploy -y --spa --path ./dist --site random did:plc:dfl62fgb7wtjj3fcbb72naae" 9 9 } 10 10 }
+4 -2
index.html
··· 55 55 if (!r.ok) throw new Error(`server error (T_T): ${r.status}`); 56 56 return r.json(); 57 57 }) 58 - .then(({ domainUrl, fallbackUrl }) => { 59 - const href = domainUrl ?? fallbackUrl; 58 + .then(({ domains, fallbackUrl }) => { 59 + domains = domains.map(d => `https://${d}`); 60 + const preferred = domains.filter(d => !d.endsWith("wisp.place")); 61 + const href = (preferred.length > 0 ? preferred : domains)[0] ?? fallbackUrl; 60 62 const a = document.getElementById("url"); 61 63 a.href = href; 62 64 a.textContent = href;