nomadro/apps/navmini/tt/app.js
eric d93a355fd5 Migrate navmini/ebook/nomadweb into apps/ as same-origin portal subpaths.
Shield external portal jumps (keep EXTERNAL_* for later), serve /nav from static build, and proxy /book + /community to vertical Next apps with Caddy notes.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-28 03:30:34 -05:00

16 lines
278 B
JavaScript

App({
globalData: {
theme: "light",
},
onLaunch() {
try {
const saved = tt.getStorageSync("navmini-theme");
if (saved === "light" || saved === "dark") {
this.globalData.theme = saved;
}
} catch (e) {
/* ignore */
}
},
});