Skip to content

Commit

Permalink
Adding the zone arg to the app factory
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesdaniels committed Nov 12, 2019
1 parent 6638b9d commit d7d52c8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/analytics/analytics.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ export class AngularFireAnalytics {
) {
// @ts-ignore zapping in the UMD in the build script
const requireAnalytics = from(import('firebase/analytics'));
const app = _firebaseAppFactory(options, nameOrConfig);
const app = _firebaseAppFactory(options, zone, nameOrConfig);

this.analytics = requireAnalytics.pipe(
map(() => app.analytics()),
Expand All @@ -63,7 +63,7 @@ export class AngularFireAnalytics {
}
if (automaticallySetCurrentScreen !== false) {
// TODO when is screen_name undefined?
analytics.setCurrentScreen(screen_name || url, { global: outlet == "primary" })
analytics.setCurrentScreen(screen_name || url, { global: outlet == "primary" });
}
}),
runOutsideAngular(zone)
Expand Down
2 changes: 1 addition & 1 deletion src/remote-config/remote-config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ export class AngularFireRemoteConfig {

this.remoteConfig = requireRemoteConfig.pipe(
map(rc => rc.registerRemoteConfig(firebase)),
map(() => _firebaseAppFactory(options, nameOrConfig)),
map(() => _firebaseAppFactory(options, zone, nameOrConfig)),
map(app => app.remoteConfig()),
tap(rc => {
if (settings) { rc.settings = settings }
Expand Down

0 comments on commit d7d52c8

Please sign in to comment.