From f7cbaaac1e2a895ef5726e83e3323eb8c2057a36 Mon Sep 17 00:00:00 2001 From: Serraniel Date: Sat, 7 Nov 2020 16:54:35 +0100 Subject: [PATCH] #32 Small fix regarding default value of getData in chromium storage provider --- src/javascript/settings/storageProvider.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/javascript/settings/storageProvider.js b/src/javascript/settings/storageProvider.js index 4ce2686..06d621a 100644 --- a/src/javascript/settings/storageProvider.js +++ b/src/javascript/settings/storageProvider.js @@ -11,7 +11,7 @@ class StorageProviderChromium { getData(key, defaultValue, callback) { this.getStorage().get(key, items => { - if (assigned(items)) { + if (assigned(items) && assigned(items[key])) { callback(items[key]); } else {