diff --git a/src/drivers/webextension/js/utils.js b/src/drivers/webextension/js/utils.js index 53eb779d0..6d0114932 100644 --- a/src/drivers/webextension/js/utils.js +++ b/src/drivers/webextension/js/utils.js @@ -55,7 +55,7 @@ const Utils = { */ async getOption(name, defaultValue = null) { try { - const option = await Utils.promisify(chrome.storage.sync, 'get', name) + const option = await chrome.storage.sync.get(name) if (option[name] !== undefined) { return option[name] @@ -75,7 +75,7 @@ const Utils = { */ async setOption(name, value) { try { - await Utils.promisify(chrome.storage.sync, 'set', { + await chrome.storage.sync.set({ [name]: value, }) } catch (error) {