File tree 4 files changed +7
-7
lines changed
4 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -13,18 +13,18 @@ function intialize() {
13
13
14
14
// [START perf_initialize_app]
15
15
// TODO: Replace the following with your app's Firebase project configuration
16
- // See: https://firebase.google.com/docs/web/setup #config-object
16
+ // See: https://firebase.google.com/docs/web/learn-more #config-object
17
17
const firebaseConfig = {
18
18
// ...
19
19
} ;
20
20
21
21
// Initialize Firebase
22
- initializeApp ( firebaseConfig ) ;
22
+ const app = initializeApp ( firebaseConfig ) ;
23
23
// [END perf_initialize_app]
24
24
25
25
// [START perf_singleton]
26
26
// Initialize Performance Monitoring and get a reference to the service
27
- const perf = getPerformance ( ) ;
27
+ const perf = getPerformance ( app ) ;
28
28
// [END perf_singleton]
29
29
}
30
30
Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ const perf = firebase.performance();
10
10
function intialize ( ) {
11
11
// [START perf_initialize_app]
12
12
// TODO: Replace the following with your app's Firebase project configuration
13
- // See: https://firebase.google.com/docs/web/setup #config-object
13
+ // See: https://firebase.google.com/docs/web/learn-more #config-object
14
14
const firebaseConfig = {
15
15
// ...
16
16
} ;
Original file line number Diff line number Diff line change 6
6
7
7
// [START perf_initialize_app_modular]
8
8
// TODO: Replace the following with your app's Firebase project configuration
9
- // See: https://firebase.google.com/docs/web/setup #config-object
9
+ // See: https://firebase.google.com/docs/web/learn-more #config-object
10
10
const firebaseConfig = {
11
11
// ...
12
12
} ;
13
13
14
14
// Initialize Firebase
15
- initializeApp ( firebaseConfig ) ;
15
+ const app = initializeApp ( firebaseConfig ) ;
16
16
// [END perf_initialize_app_modular]
Original file line number Diff line number Diff line change 6
6
7
7
// [START perf_singleton_modular]
8
8
// Initialize Performance Monitoring and get a reference to the service
9
- const perf = getPerformance ( ) ;
9
+ const perf = getPerformance ( app ) ;
10
10
// [END perf_singleton_modular]
You can’t perform that action at this time.
0 commit comments