Offline first

This commit is contained in:
Magnus Åhall 2026-05-20 19:58:34 +02:00
parent 84181858c8
commit f37ebc1c41
4 changed files with 81 additions and 16 deletions

View file

@ -85,7 +85,7 @@ export class N2NodeUI extends CustomHTMLElement {
// No point in showing markdown if there is no data.
// If there is no data, it will show a blank page regardless, and the user will most
// likely want to edit content, which can't be done in markdown.
const show = this.node.content().trim() !== '' && state
const show = this.node?.content().trim() !== '' && state
switch (show) {
case true: