Fix uncaugh exception at launch when indexedDB is forbidden

Possibly related to:
- https://www.reddit.com/r/uBlockOrigin/comments/atbjvg/web_pages_dont_load_in_waterfox_56271_64bit_with/
This commit is contained in:
Raymond Hill 2019-02-24 11:28:28 -05:00
parent 6c3ebad4dc
commit eaa0094e53
No known key found for this signature in database
GPG Key ID: 25E1490B761470C2
1 changed files with 4 additions and 1 deletions

View File

@ -505,7 +505,10 @@
};
const clearIDB = function() {
indexedDB.deleteDatabase(STORAGE_NAME);
try {
indexedDB.deleteDatabase(STORAGE_NAME);
} catch(ex) {
}
};
return api;