We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b1ca46d commit 878f577Copy full SHA for 878f577
packages/firestore/src/local/simple_db.ts
@@ -209,7 +209,7 @@ export class SimpleDb {
209
static isMockPersistence(): boolean {
210
return (
211
typeof process !== 'undefined' &&
212
- process.env.USE_MOCK_PERSISTENCE === 'YES'
+ process.env?.USE_MOCK_PERSISTENCE === 'YES'
213
);
214
}
215
packages/firestore/test/util/test_platform.ts
@@ -45,7 +45,8 @@ export class FakeWindow {
45
});
46
this.fakeIndexedDb =
47
fakeIndexedDb ||
48
- (typeof window !== 'undefined' && window.indexedDB) || null;
+ (typeof window !== 'undefined' && window.indexedDB) ||
49
+ null;
50
51
52
get localStorage(): Storage {
0 commit comments