@infrab4a/connect-angular 4.1.2-beta.13 → 4.1.2-beta.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -388,8 +388,9 @@ AngularFirestoreModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0",
|
|
|
388
388
|
},
|
|
389
389
|
], imports: [AngularElasticSeachModule,
|
|
390
390
|
provideFirestore((injector) => {
|
|
391
|
-
|
|
392
|
-
|
|
391
|
+
const platformId = injector.get(PLATFORM_ID);
|
|
392
|
+
if (!isPlatformBrowser(platformId) && !MobileOperationSystemCheckerHelper.isAppleDevice())
|
|
393
|
+
return getFirestore(injector.get(FirebaseApp));
|
|
393
394
|
const firestore = initializeFirestore(injector.get(FirebaseApp), { experimentalForceLongPolling: true });
|
|
394
395
|
enableIndexedDbPersistence(firestore).catch(console.error);
|
|
395
396
|
return firestore;
|
|
@@ -400,8 +401,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImpor
|
|
|
400
401
|
imports: [
|
|
401
402
|
AngularElasticSeachModule,
|
|
402
403
|
provideFirestore((injector) => {
|
|
403
|
-
|
|
404
|
-
|
|
404
|
+
const platformId = injector.get(PLATFORM_ID);
|
|
405
|
+
if (!isPlatformBrowser(platformId) && !MobileOperationSystemCheckerHelper.isAppleDevice())
|
|
406
|
+
return getFirestore(injector.get(FirebaseApp));
|
|
405
407
|
const firestore = initializeFirestore(injector.get(FirebaseApp), { experimentalForceLongPolling: true });
|
|
406
408
|
enableIndexedDbPersistence(firestore).catch(console.error);
|
|
407
409
|
return firestore;
|