Skip to content

Commit 4ede337

Browse files
author
Brian Chen
committed
[AUTOMATED]: Prettier Code Styling
1 parent efc7595 commit 4ede337

File tree

2 files changed

+8
-9
lines changed

2 files changed

+8
-9
lines changed

packages/firebase/index.d.ts

+6-6
Original file line numberDiff line numberDiff line change
@@ -6228,12 +6228,12 @@ declare namespace firebase.firestore {
62286228
experimentalTabSynchronization?: boolean;
62296229

62306230
/**
6231-
* Whether to force enable persistence for the client. This cannot be used
6232-
* with `synchronizeTabs:true` and is primarily intended for use with Web
6233-
* Workers. Setting this to 'true' will enable persistence, but cause other
6234-
* tabs using persistence to fail.
6235-
*/
6236-
experimentalForce?: boolean;
6231+
* Whether to force enable persistence for the client. This cannot be used
6232+
* with `synchronizeTabs:true` and is primarily intended for use with Web
6233+
* Workers. Setting this to 'true' will enable persistence, but cause other
6234+
* tabs using persistence to fail.
6235+
*/
6236+
experimentalForce?: boolean;
62376237
}
62386238

62396239
export type LogLevel = 'debug' | 'error' | 'silent';

packages/firestore/src/local/indexeddb_persistence.ts

+2-3
Original file line numberDiff line numberDiff line change
@@ -284,11 +284,10 @@ export class IndexedDbPersistence implements Persistence {
284284
this.indexManager,
285285
/*keepDocumentChangeLog=*/ this.allowTabSynchronization
286286
);
287+
this.window = platform.window;
287288
if (platform.window && platform.window.localStorage) {
288-
this.window = platform.window;
289-
this.webStorage = this.window.localStorage;
289+
this.webStorage = platform.window.localStorage;
290290
} else {
291-
this.window = platform.window;
292291
this.webStorage = null;
293292
log.error(
294293
LOG_TAG,

0 commit comments

Comments
 (0)