#32 Small fix regarding default value of getData in chromium storage provider

This commit is contained in:
Serraniel 2020-11-07 16:54:35 +01:00
parent 88a97af8f4
commit f7cbaaac1e
Signed by: Serraniel
GPG key ID: 3690B4E7364525D3

View file

@ -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 {