Skip to content

Commit

Permalink
fix ignore provider (#365)
Browse files Browse the repository at this point in the history
We want to ignore changes from the indexeddb provider, *not* other
changes!
  • Loading branch information
paulgb authored Dec 18, 2024
1 parent 87f4224 commit 9bdebdd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js-pkg/client/src/provider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit 9bdebdd

Please sign in to comment.