Plugin Keys: Bug fix - undefined vaule in localStorage cause the plugin fail
This commit is contained in:
parent
e14baa9f3f
commit
11f016434c
@ -67,7 +67,8 @@ window.plugin.keys.storeKeys = function() {
|
||||
}
|
||||
|
||||
window.plugin.keys.loadKeys = function() {
|
||||
var keysObjectJSON = localStorage[plugin.keys.LOCAL_STORAGE_KEY]
|
||||
var keysObjectJSON = localStorage[plugin.keys.LOCAL_STORAGE_KEY];
|
||||
if(!keysObjectJSON) return;
|
||||
var keysObject = JSON.parse(keysObjectJSON);
|
||||
plugin.keys.keys = keysObject.keys;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user