#32 Small fix regarding default value of getData in chromium storage provider
This commit is contained in:
parent
88a97af8f4
commit
f7cbaaac1e
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue