Compare commits

...
1 Commits
3 changed files with 6 additions and 5 deletions
+3 -1
View File
@@ -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);
+3 -3
View File
@@ -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"
}
-1
View File
@@ -6103,7 +6103,6 @@ self.onconnect = (event) => {
console.log('[Worker] New port connected');
connectedPorts.push(port);
activeSigningPort = port;
port.onmessage = async (e) => {
const {