hive
hive copied to clipboard
Disable Hive storage if Firefox private is detected
This issue has been close but I think this is a Hive issue: https://github.com/hivedb/hive/issues/800
Is it not possible to disable Hive storage if Firefox private is detected ?
you could probably just check if indexedDb is available and not use a different way to store stuff. In most cases you would just prompt the user to change browsers
How can I check if indexedDb is available ?
If I try import 'dart:indexed_db';
This is undefined, there is tones of issues about it
So I can't use IdbFactory.supported
.
How can I check if indexedDb is available ? If I try
import 'dart:indexed_db';
This is undefined, there is tones of issues about itSo I can't use
IdbFactory.supported
.
You can try to import dart:html and try opening indexedDb with window.indexedDb (this will still return a object, so make sure you can modify the db itself)
Just wanted to note that firefox 115.0 supports indexedDb in private browsing by default now. Release notes can be found here.