From 14a46abc63b5a2335b3f0e1712510f2ecfd006d5 Mon Sep 17 00:00:00 2001 From: Eric Bell Date: Tue, 24 Nov 2026 14:20:18 -0500 Subject: [PATCH] Stop showing the word "null" above the menu (Fixes #26) render() passed null to root.append(), which prints it as text. Only append the reset banner when there is one. Co-Authored-By: Claude Sonnet 5.5 --- src/app.js | 2 +- src/version.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/app.js b/src/app.js index ec737d5..01a4295 100644 --- a/src/app.js +++ b/src/app.js @@ -1034,7 +1034,7 @@ btn('Change passphrase', changePassphrase), btn('Print…', openPrintDialog), btn(state.editing ? 'Done editing' : 'Edit', () => { state.editing = !state.editing; render(); }, state.editing ? 'primary' : ''))), - resetRequested() && !state.resetOffered ? resetBanner() : null, + ...(resetRequested() && !state.resetOffered ? [resetBanner()] : []), // never pass null: append() would print "null" h('div', { class: 'layout' }, renderNav(), h('main', {}, onHeader ? [h('h2', {}, 'Print header'), headerPanel()] : sec ? [h('h2', {}, sec.title), state.editing ? editSection(sec) : viewSection(sec)] diff --git a/src/version.js b/src/version.js index 79a94a5..72794a2 100644 --- a/src/version.js +++ b/src/version.js @@ -2,7 +2,7 @@ // YYMMDD is the date, X the iteration that day (A first, B second, ...). // Bump with `npm run bump` (see bump-version.js). build.js strips `export`. -export const APP_VERSION = '261124F'; +export const APP_VERSION = '261124G'; const VERSION_RE = /^(\d{6})([A-Z])$/; export const isVersion = (v) => typeof v === 'string' && VERSION_RE.test(v);