Skip to content

Commit 75646d9

Browse files
committed
added error handler to remote-config and performance modules on indexedDB not supported in some browser situations
1 parent cff6383 commit 75646d9

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

packages/performance/index.ts

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,10 +42,6 @@ export function registerPerformance(instance: FirebaseNamespace): void {
4242
if (typeof window === 'undefined') {
4343
throw ERROR_FACTORY.create(ErrorCode.NO_WINDOW);
4444
}
45-
if (!isSupported()) {
46-
throw ERROR_FACTORY.create(ErrorCode.UNSUPPORTED_BROWSER);
47-
}
48-
4945
setupApi(window);
5046
SettingsService.getInstance().firebaseAppInstance = app;
5147
SettingsService.getInstance().installationsService = installations;
@@ -68,6 +64,9 @@ export function registerPerformance(instance: FirebaseNamespace): void {
6864
const installations = container
6965
.getProvider('installations')
7066
.getImmediate();
67+
if (!isSupported()) {
68+
throw ERROR_FACTORY.create(ErrorCode.UNSUPPORTED_BROWSER);
69+
}
7170

7271
return factoryMethod(app, installations);
7372
},

0 commit comments

Comments
 (0)