Skip to content

Commit 360b33c

Browse files
committed
Add changeset and run formatting
1 parent 1d69c99 commit 360b33c

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

.changeset/tame-apes-tie.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ export async function isWindowSupported(): Promise<boolean> {
3232
// This throws if open() is unsupported, so adding it to the conditional
3333
// statement below can cause an uncaught error.
3434
await validateIndexedDBOpenable();
35-
} catch(e) {
35+
} catch (e) {
3636
return false;
3737
}
3838
// firebase-js-sdk/issues/2393 reveals that idb#open in Safari iframe and Firefox private browsing

0 commit comments

Comments
 (0)