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 164920a + fca5859 commit 43fb2f5Copy full SHA for 43fb2f5
src/client.ts
@@ -31,5 +31,9 @@ export class GeoFireClient {
31
* @returns GeoFireClient
32
*/
33
export function init(app: firestore.FirebaseApp): GeoFireClient {
34
+ // Bug Fix for #13 Geopoint was moved from app.firestore to app._firebase_.firestore.GeoPoint?
35
+ if (typeof(app.firestore.GeoPoint) === 'undefined' && app.firebase_ && app.firebase_.firestore && app.firebase_.firestore.GeoPoint) {
36
+ app.firestore.GeoPoint = app.firebase_.firestore.GeoPoint;
37
+ }
38
return new GeoFireClient(app);
39
}
0 commit comments