hive icon indicating copy to clipboard operation
hive copied to clipboard

Disable Hive storage if Firefox private is detected

Open poka-IT opened this issue 2 years ago • 4 comments

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 ?

poka-IT avatar Jul 03 '22 13:07 poka-IT

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

techno-disaster avatar Jul 08 '22 11:07 techno-disaster

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.

poka-IT avatar Jul 08 '22 16:07 poka-IT

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.

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)

techno-disaster avatar Jul 09 '22 11:07 techno-disaster

Just wanted to note that firefox 115.0 supports indexedDb in private browsing by default now. Release notes can be found here.

gokhanmeteerturk avatar Aug 18 '23 10:08 gokhanmeteerturk