File tree 2 files changed +8
-9
lines changed
2 files changed +8
-9
lines changed Original file line number Diff line number Diff line change @@ -6228,12 +6228,12 @@ declare namespace firebase.firestore {
6228
6228
experimentalTabSynchronization ?: boolean ;
6229
6229
6230
6230
/**
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 ;
6237
6237
}
6238
6238
6239
6239
export type LogLevel = 'debug' | 'error' | 'silent' ;
Original file line number Diff line number Diff line change @@ -284,11 +284,10 @@ export class IndexedDbPersistence implements Persistence {
284
284
this . indexManager ,
285
285
/*keepDocumentChangeLog=*/ this . allowTabSynchronization
286
286
) ;
287
+ this . window = platform . window ;
287
288
if ( platform . window && platform . window . localStorage ) {
288
- this . window = platform . window ;
289
- this . webStorage = this . window . localStorage ;
289
+ this . webStorage = platform . window . localStorage ;
290
290
} else {
291
- this . window = platform . window ;
292
291
this . webStorage = null ;
293
292
log . error (
294
293
LOG_TAG ,
You can’t perform that action at this time.
0 commit comments