Skip to content

Commit b404768

Browse files
author
suliyu
committed
fix: expire_days三目正确使用days
1 parent 450aeca commit b404768

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/local_storage.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ class LOCAL_STORAGE {
141141
*/
142142
register(props, days) {
143143
if (_.isObject(props)) {
144-
this.expire_days = ( typeof days === 'undefined' ) ? this.default_expiry : day;
144+
this.expire_days = ( typeof days === 'undefined' ) ? this.default_expiry : days;
145145
_.extend(this['props'], props);
146146
this.save();
147147
return true;
@@ -162,7 +162,7 @@ class LOCAL_STORAGE {
162162
if (typeof default_value === 'undefined') {
163163
default_value = 'None';
164164
}
165-
this.expire_days = ( typeof days === 'undefined' ) ? this.default_expiry : day;
165+
this.expire_days = ( typeof days === 'undefined' ) ? this.default_expiry : days;
166166

167167
_.each(props, function(val, prop) {
168168
if (!this['props'][prop] || this['props'][prop] === default_value) {

0 commit comments

Comments
 (0)