Skip to content

Commit 85e581e

Browse files
committed
fix(performance): correct check for disabling performance
- if the app doesn't inject anything and the values are `null`, then we should enable instrumentation and data collection by default Fixes angular#2502
1 parent 77a9a15 commit 85e581e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/performance/performance.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -36,10 +36,10 @@ export class AngularFirePerformance {
3636
tap(perf => perf.registerPerformance && perf.registerPerformance(firebase as any)),
3737
map(() => zone.runOutsideAngular(() => app.performance())),
3838
tap(performance => {
39-
if (instrumentationEnabled !== true) {
39+
if (instrumentationEnabled === false) {
4040
performance.instrumentationEnabled = false;
4141
}
42-
if (dataCollectionEnabled !== true) {
42+
if (dataCollectionEnabled === false) {
4343
performance.dataCollectionEnabled = false;
4444
}
4545
}),

0 commit comments

Comments
 (0)