From db76432ab6364e0d7f402e2f315351e8ebf1325e Mon Sep 17 00:00:00 2001 From: "google-labs-jules[bot]" <161369871+google-labs-jules[bot]@users.noreply.github.com> Date: Sun, 8 Feb 2026 01:20:48 +0000 Subject: [PATCH] fix(app.js): resolve syntax error and restore _initNostr method Removes a malformed code block that was causing an "Unexpected token '.'" syntax error and restores the `_initNostr` method which correctly initializes the Nostr client. Fixes: #1083 (SyntaxError in app.js) Co-authored-by: PR0M3TH3AN <53631862+PR0M3TH3AN@users.noreply.github.com> --- js/app.js | 34 +--------------------------------- 1 file changed, 1 insertion(+), 33 deletions(-) diff --git a/js/app.js b/js/app.js index 335fd813..5e1e6368 100644 --- a/js/app.js +++ b/js/app.js @@ -1079,39 +1079,7 @@ class Application { } } - accessControl - .refresh() - .then(() => { - if ( - accessControl.lastError && - accessControl.lastError?.code === "nostr-unavailable" - ) { - devLogger.warn( - "[app.init()] Access control refresh should not run before nostrClient.init()", - accessControl.lastError - ); - } - }) - .catch((error) => { - devLogger.warn( - "[app.init()] Failed to process session actor change:", - error, - ); - }); - }); - } - - if (this.profileController) { - Promise.resolve() - .then(() => this.profileController.refreshAdminPaneState()) - .catch((error) => { - devLogger.warn( - "Failed to update admin pane after connecting to Nostr:", - error - ); - }); - } - + async _initNostr() { // Kick off relay connection in the background. nostrClient.init().catch((err) => { devLogger.warn("[app.init()] Background nostrClient.init failed:", err);