We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7b6829d commit f8ad370Copy full SHA for f8ad370
1 file changed
demo.html
@@ -420,12 +420,6 @@ <h1>📝 Live Notes</h1>
420
let isNewNote = false;
421
let privkey = localStorage.getItem('nostr-privkey') || '';
422
423
- // Initialize privkey input
424
- if (privkey) {
425
- document.getElementById('privkeyInput').value = privkey;
426
- onPrivkeyChange();
427
- }
428
-
429
function renderMarkdown(text) {
430
return marked.parse(text);
431
}
@@ -486,6 +480,12 @@ <h1>📝 Live Notes</h1>
486
480
487
481
};
488
482
483
+ // Initialize privkey input from localStorage
484
+ if (privkey) {
485
+ document.getElementById('privkeyInput').value = privkey;
+ window.onPrivkeyChange();
+ }
+
489
async function loadNotes() {
490
const files = await client.listFiles();
491
notes = files.filter(f => f.name.endsWith('.md'));
0 commit comments