puvox-library 1.1.24 → 1.1.25
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/library_standard.js +1 -1
- package/package.json +1 -1
package/library_standard.js
CHANGED
@@ -3018,7 +3018,7 @@ class PuvoxLibrary {
|
|
3018
3018
|
} else {
|
3019
3019
|
const val = storage.getItem(appName + '_' + optName);
|
3020
3020
|
if (decode) { try { return JSON.parse(val) } catch(e) {} }
|
3021
|
-
return val;
|
3021
|
+
return (val!==null && val !== undefined) ? val : defaultValue;
|
3022
3022
|
}
|
3023
3023
|
}
|
3024
3024
|
set(optName, content){
|