fix javascript error
This commit is contained in:
@@ -23,7 +23,7 @@
|
|||||||
if (this.enable_local_storage) {
|
if (this.enable_local_storage) {
|
||||||
var now = new Date().getTime();
|
var now = new Date().getTime();
|
||||||
$.each($.localStorage.keys(), function(i, key) {
|
$.each($.localStorage.keys(), function(i, key) {
|
||||||
var obj = $.localStorage.get(key);
|
var obj = localStorage.getItem(key);
|
||||||
if (obj && obj.expires) {
|
if (obj && obj.expires) {
|
||||||
var expiry = Date.parse(obj.expires);
|
var expiry = Date.parse(obj.expires);
|
||||||
if (expiry < now) {
|
if (expiry < now) {
|
||||||
|
|||||||
Reference in New Issue
Block a user