Add full-feature inline fallback when script.js fails

If external JS fails to load on some static hosts, run an inline version supporting add/edit/delete/favorite/search/sort/import/export/theme so the UI is never dead.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
dsyoon
2026-02-07 18:25:54 +09:00
parent 37fe555941
commit 812a59bc9f
2 changed files with 438 additions and 49 deletions

View File

@@ -1,6 +1,8 @@
(() => {
"use strict";
// If index.html inline fallback already booted, do nothing.
if (globalThis.__LINKS_APP_BOOTED__) return;
// Mark boot so index.html fallback won't run
globalThis.__LINKS_APP_BOOTED__ = true;