refactor(core): add version in worker url (#11614)

Co-authored-by: renovate <29139614+renovate@users.noreply.github.com>
This commit is contained in:
liuyi
2025-04-10 19:12:49 +08:00
committed by GitHub
parent a6ddfdd85e
commit e79e4c9e9b
9 changed files with 15 additions and 18 deletions
+1 -1
View File
@@ -23,7 +23,7 @@ import { RouterProvider } from 'react-router-dom';
let storeManagerClient: StoreManagerClient;
const workerUrl = getWorkerUrl('nbstore.worker.js');
const workerUrl = getWorkerUrl('nbstore');
if (window.SharedWorker) {
const worker = new SharedWorker(workerUrl, { name: 'affine-shared-worker' });
storeManagerClient = new StoreManagerClient(new OpClient(worker.port));