@taybart/corvid 0.1.15 → 0.1.16
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/dist/index.js +1 -1
- package/dist/ls.js +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -674,7 +674,7 @@ const network = {
|
|
|
674
674
|
};
|
|
675
675
|
function get(key, _default) {
|
|
676
676
|
let ret = localStorage.getItem(key);
|
|
677
|
-
if (
|
|
677
|
+
if (null === ret && null != _default) {
|
|
678
678
|
ret = _default;
|
|
679
679
|
if ('function' == typeof _default) ret = _default();
|
|
680
680
|
set(key, ret);
|
package/dist/ls.js
CHANGED
|
@@ -244,7 +244,7 @@ function interpolate(str, params) {
|
|
|
244
244
|
}
|
|
245
245
|
function get(key, _default) {
|
|
246
246
|
let ret = localStorage.getItem(key);
|
|
247
|
-
if (
|
|
247
|
+
if (null === ret && null != _default) {
|
|
248
248
|
ret = _default;
|
|
249
249
|
if ('function' == typeof _default) ret = _default();
|
|
250
250
|
set(key, ret);
|