diff --git a/www/js/init-ndk.mjs b/www/js/init-ndk.mjs index 9bbb655..aab9b62 100644 --- a/www/js/init-ndk.mjs +++ b/www/js/init-ndk.mjs @@ -184,7 +184,7 @@ export async function initNDKPage(options = {}) { // All pages in www/ directory, so worker path is always the same. // Include explicit worker revision token so updated SharedWorker code is guaranteed to restart. - const WORKER_REVISION = 'relay-events-db-5'; + const WORKER_REVISION = 'relay-events-db-6'; const workerPath = `./ndk-worker.js?v=${encodeURIComponent(VERSION)}&wr=${encodeURIComponent(WORKER_REVISION)}`; // Initialize NDK SharedWorker (shared across all tabs/pages) @@ -217,6 +217,7 @@ export async function initNDKPage(options = {}) { const readyHandler = () => { cleanup(); console.log('[init-ndk] Worker signaled ready, initialization complete'); + tryRegisterActiveSigningPort(); resolve(); }; @@ -319,6 +320,7 @@ async function ensureAuthenticated() { try { const pubkey = await getPublicKeyWithTimeout(4000); console.log('[init-ndk] Authentication successful, pubkey:', pubkey); + tryRegisterActiveSigningPort(); finish(true); } catch (error) { console.log('[init-ndk] window.nostr not ready yet:', error.message); diff --git a/www/js/version.json b/www/js/version.json index 77ac45b..e41d6e2 100644 --- a/www/js/version.json +++ b/www/js/version.json @@ -1,5 +1,5 @@ { - "VERSION": "v0.7.12", - "VERSION_NUMBER": "0.7.12", - "BUILD_DATE": "2026-05-27T19:17:45.501Z" + "VERSION": "v0.7.13", + "VERSION_NUMBER": "0.7.13", + "BUILD_DATE": "2026-05-27T19:27:24.421Z" } diff --git a/www/ndk-worker.js b/www/ndk-worker.js index f54b6f8..e494a3b 100644 --- a/www/ndk-worker.js +++ b/www/ndk-worker.js @@ -6103,7 +6103,6 @@ self.onconnect = (event) => { console.log('[Worker] New port connected'); connectedPorts.push(port); - activeSigningPort = port; port.onmessage = async (e) => { const {