We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7e237cd commit c20633eCopy full SHA for c20633e
.changeset/three-glasses-judge.md
@@ -0,0 +1,5 @@
1
+---
2
+'@firebase/util': patch
3
4
+
5
+Fix for third party window content that cannot access IndexedDB if the browser is set to never accept third party cookies on Firefox.
packages/util/src/environment.ts
@@ -140,7 +140,11 @@ export function isSafari(): boolean {
140
* @return true if indexedDB is supported by current browser/service worker context
141
*/
142
export function isIndexedDBAvailable(): boolean {
143
- return typeof indexedDB === 'object';
+ try {
144
+ return typeof indexedDB === 'object';
145
+ } catch (e) {
146
+ return false;
147
+ }
148
}
149
150
/**
0 commit comments