Remove old limitation to only run on certain browsers

Execute on all browsers besides Safari as it does not support chrome.storage.local.get with an empty key

https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/API/storage/StorageArea/get
This commit is contained in:
Daniel James Smith 2023-01-23 20:51:15 +01:00
parent 35b480af5b
commit d7f71aa0b6
No known key found for this signature in database
GPG Key ID: 03E4BD365FF06726
1 changed files with 3 additions and 5 deletions

View File

@ -739,11 +739,9 @@ export default class MainBackground {
}
async reseedStorage() {
if (
!this.platformUtilsService.isChrome() &&
!this.platformUtilsService.isVivaldi() &&
!this.platformUtilsService.isOpera()
) {
// Skipping Safari as it does not support retrieving all data from localStorage via an empty key
// https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/API/storage/StorageArea/get
if (this.platformUtilsService.isSafari) {
return;
}