We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3e7dd37 commit a632b8bCopy full SHA for a632b8b
packages/firestore/src/local/simple_db.ts
@@ -154,6 +154,13 @@ export class SimpleDb {
154
return true;
155
}
156
157
+ // In some Node environments, `window` is defined, but `window.navigator` is
158
+ // not. We don't support IndexedDB persistence in Node if the
159
+ // `isMockPersistence()` check above returns false.
160
+ if (window.navigator === undefined) {
161
+ return false;
162
+ }
163
+
164
// We extensively use indexed array values and compound keys,
165
// which IE and Edge do not support. However, they still have indexedDB
166
// defined on the window, so we need to check for them here and make sure
0 commit comments