Merge pull request #2224 from PR0M3TH3AN/fix-app-js-syntax-error-15406484062296622961

fix(app.js): resolve syntax error and restore _initNostr method
This commit is contained in:
thePR0M3TH3AN authored and GitHub committed 2026-02-07 20:24:41 -05:00
commit a345a1ca57
1 file changed
+1 -33
+1 -33
View File
@@ -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);