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 1d69c99 commit 360b33cCopy full SHA for 360b33c
.changeset/tame-apes-tie.md
@@ -0,0 +1,5 @@
1
+---
2
+'@firebase/messaging': patch
3
4
+
5
+Fix uncaught rejection in `isSupported()` if environment does not support IndexedDB's `open()` method.
packages/messaging/src/api/isSupported.ts
@@ -32,7 +32,7 @@ export async function isWindowSupported(): Promise<boolean> {
32
// This throws if open() is unsupported, so adding it to the conditional
33
// statement below can cause an uncaught error.
34
await validateIndexedDBOpenable();
35
- } catch(e) {
+ } catch (e) {
36
return false;
37
}
38
// firebase-js-sdk/issues/2393 reveals that idb#open in Safari iframe and Firefox private browsing
0 commit comments