From 9bdebddd59378bfe7f8306e6da699df5e1b46070 Mon Sep 17 00:00:00 2001 From: Paul Butler Date: Wed, 18 Dec 2024 13:45:55 -0500 Subject: [PATCH] fix ignore provider (#365) We want to ignore changes from the indexeddb provider, *not* other changes! --- js-pkg/client/src/provider.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js-pkg/client/src/provider.ts b/js-pkg/client/src/provider.ts index a0c827aa..4d0fff00 100644 --- a/js-pkg/client/src/provider.ts +++ b/js-pkg/client/src/provider.ts @@ -302,7 +302,7 @@ export class YSweetProvider { return } - if (this.indexedDBProvider && origin !== this.indexedDBProvider) { + if (this.indexedDBProvider && origin === this.indexedDBProvider) { // Ignore updates from our own IndexedDB provider. return }