Monorepo for Aesthetic.Computer aesthetic.computer
4
fork

Configure Feed

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

papers/whistlegraph-platter: rename `const top` → `topDir` in archive viewer

The desktop archive viewer's inline script declared `const top` at script
top-level, which collides with the non-configurable `window.top` global and
throws `SyntaxError: Identifier 'top' has already been declared` on load.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>

+2 -2
+2 -2
papers/whistlegraph-platter/tools/build-html.mjs
··· 186 186 const i = p.lastIndexOf("."); const s = p.lastIndexOf("/"); 187 187 return (i > s && i !== -1) ? p.slice(i).toLowerCase() : ""; 188 188 }; 189 - const top = (p) => p.split("/")[0]; 189 + const topDir = (p) => p.split("/")[0]; 190 190 191 191 // Pre-compute decorated entries 192 - for (const f of FILES) { f.t = top(f.p); f.x = ext(f.p); } 192 + for (const f of FILES) { f.t = topDir(f.p); f.x = ext(f.p); } 193 193 194 194 // === Folder summary table === 195 195 function renderFolders() {