Some common code improvements
This commit is contained in:
@@ -13,7 +13,7 @@ window.common = (function(global) {
|
||||
!key ||
|
||||
typeof key !== 'string'
|
||||
) {
|
||||
console.log('unable to save to storage');
|
||||
console.log('unable to read from storage');
|
||||
return '';
|
||||
}
|
||||
return '' + localStorage.getItem(key + 'Val');
|
||||
|
Reference in New Issue
Block a user