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.
1 parent cff6383 commit 75646d9Copy full SHA for 75646d9
packages/performance/index.ts
@@ -42,10 +42,6 @@ export function registerPerformance(instance: FirebaseNamespace): void {
42
if (typeof window === 'undefined') {
43
throw ERROR_FACTORY.create(ErrorCode.NO_WINDOW);
44
}
45
- if (!isSupported()) {
46
- throw ERROR_FACTORY.create(ErrorCode.UNSUPPORTED_BROWSER);
47
- }
48
-
49
setupApi(window);
50
SettingsService.getInstance().firebaseAppInstance = app;
51
SettingsService.getInstance().installationsService = installations;
@@ -68,6 +64,9 @@ export function registerPerformance(instance: FirebaseNamespace): void {
68
64
const installations = container
69
65
.getProvider('installations')
70
66
.getImmediate();
67
+ if (!isSupported()) {
+ throw ERROR_FACTORY.create(ErrorCode.UNSUPPORTED_BROWSER);
+ }
71
72
return factoryMethod(app, installations);
73
},
0 commit comments