feat: show debug banner on testnet or debug mode, add TESTNET tag #143

Merged
sneak merged 3 commits from fix/issue-140-debug-banner into main 2026-03-01 21:55:36 +01:00
Showing only changes of commit d22c83e6dd - Show all commits

View File

@@ -172,6 +172,9 @@ function fallbackView() {
} }
async function init() { async function init() {
await loadState();
applyTheme(state.theme);
const net = currentNetwork(); const net = currentNetwork();
if (DEBUG || net.isTestnet) { if (DEBUG || net.isTestnet) {
const banner = document.createElement("div"); const banner = document.createElement("div");
@@ -188,9 +191,6 @@ async function init() {
document.body.prepend(banner); document.body.prepend(banner);
} }
await loadState();
applyTheme(state.theme);
// Auto-default active address // Auto-default active address
if ( if (
state.activeAddress === null && state.activeAddress === null &&