Global title bar on all screens, screen name in DEBUG banner
All checks were successful
check / check (push) Successful in 14s

Move "AutistMask by @sneak" to a global title bar that appears
on every screen. Per-view headings demoted to h2 sub-headings.
Settings button moved to bottom of main view alongside Add
wallet. In DEBUG mode, the red banner now shows the current
screen name in parentheses (e.g. "DEBUG / INSECURE (main)").
This commit is contained in:
2026-02-25 18:38:33 +07:00
parent 1c9d5a9f2d
commit 64bd541013
2 changed files with 38 additions and 47 deletions

View File

@@ -37,6 +37,12 @@ function showView(name) {
el.classList.toggle("hidden", v !== name);
}
}
if (DEBUG) {
const banner = document.getElementById("debug-banner");
if (banner) {
banner.textContent = "DEBUG / INSECURE (" + name + ")";
}
}
}
// Browser-agnostic storage API
@@ -373,6 +379,7 @@ function backFromWalletAdd() {
async function init() {
if (DEBUG) {
const banner = document.createElement("div");
banner.id = "debug-banner";
banner.textContent = "DEBUG / INSECURE";
banner.style.cssText =
"background:#c00;color:#fff;text-align:center;font-size:10px;padding:1px 0;font-family:monospace;position:sticky;top:0;z-index:9999;";