I am receiving the error when trying to load my web app on iOS Safari and iOS Chrome. No errors on private browsing on desktop.
I added the following:
if (window.indexedDB) {
console.log('IDB supported');
var db = new Dexie('Stir');
//Dexie stuff
}
Using the Safari dev tools, "IDB supported" is being logged - but then the error/alert pops up and is impeding actions.
I have all of my dexie code wrapped inside if (window.indexedDB)
- to make sure it is only run if IDB is available in the browser.
My full repo is available at https://github.com/georgecook92/Stir. If looking at this code, the calls to dexie are in the actions index.js
and the main index.js
for React.