-
-
Notifications
You must be signed in to change notification settings - Fork 641
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Safari Private Browsing #134
Comments
Thanks! |
This issue is still present in Tor Browser, is there any way to polyfill window.indexeddb? |
It seems to happen on Firefox mobile in private mode as well. Maybe the APIs are simply not available. A poly fill would be great.
|
@dfahlander does dexi is supported in the private window firefox ? |
Unfortunately Firefox is the only browser that blocks IndexedDB in private mode instead of providing a temporary db like chrome and safari does it. |
Ah..Thanks for the quick response |
Where your app catches errors (such as an ErrorBoundrary in React, or similary), display a friendly message that application could not be started. Specificall, Firefox throws InvalidStateError in private mode. const db = new Dexie("x");
db.version(1).stores({
foo: 'bar'
});
db.open().then(()=>{
console.log("Database successfully opened");
}).catch(err => {
if (err.name === 'InvalidStateError') {
console.log("Firefox private mode node supported.")
} else {
console.log(err);
}
}); |
When running Safari (both Desktop and iOS) in private mode the 'req' in Line 506 is null which results in a Type Error. (TypeError: Attempted to assign to readonly property.)
Could you please handle this error more gracefully like the error in Line 505?
https://github.com/dfahlander/Dexie.js/blob/master/dist/latest/Dexie.js#L505-L507
The text was updated successfully, but these errors were encountered: