feat(nbstore): rename SyncStorage to DocSyncStorage (#10751)

This commit is contained in:
EYHN committed 2025-03-14 06:25:26 +00:00
1 parent 92effd9b51
commit f3ef9c4415
19 files changed
+90 -79

No files matched your search

+4 -1
View File
@@ -23,7 +23,10 @@ const cache = createEmotionCache();
let storeManagerClient: StoreManagerClient;
if (window.SharedWorker) {
if (
window.SharedWorker &&
localStorage.getItem('disableSharedWorker') !== 'true'
) {
const worker = new SharedWorker(
new URL(/* webpackChunkName: "nbstore" */ './nbstore.ts', import.meta.url),
{ name: 'affine-shared-worker' }