We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7eb3e51 commit 61245a3Copy full SHA for 61245a3
src/firestore/firestore.ts
@@ -100,8 +100,8 @@ export class AngularFirestore {
100
constructor(public app: FirebaseApp, shouldEnablePersistence) {
101
this.firestore = app.firestore();
102
103
- this.persistenceEnabled$ = shouldEnablePersistence ?
104
- from(app.firestore().enablePersistence().then(() => true)) :
+ this.persistenceEnabled$ = shouldEnablePersistence ?
+ from(app.firestore().enablePersistence().then(() => true, () => false)) :
105
from(new Promise((res, rej) => { res(false); }));
106
}
107
0 commit comments