We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 3173b71 + d34bf2f commit f39f01bCopy full SHA for f39f01b
src/firestore/firestore.ts
@@ -19,7 +19,9 @@ export const PersistenceSettingsToken = new InjectionToken<PersistenceSettings|u
19
export const FirestoreSettingsToken = new InjectionToken<Settings>('angularfire2.firestore.settings');
20
21
// timestampsInSnapshots was depreciated in 5.8.0
22
-export const DefaultFirestoreSettings = (parseFloat(SDK_VERSION) < 5.8 ? {timestampsInSnapshots: true} : {}) as Settings;
+const major = parseInt(SDK_VERSION.split('.')[0]);
23
+const minor = parseInt(SDK_VERSION.split('.')[1]);
24
+export const DefaultFirestoreSettings = ((major < 5 || (major == 5 && minor < 8)) ? {timestampsInSnapshots: true} : {}) as Settings;
25
26
/**
27
* A utility methods for associating a collection reference with
0 commit comments