summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorChristopher Baines <cb15g11@soton.ac.uk>2014-09-27 10:33:15 +0100
committerChristopher Baines <cb15g11@soton.ac.uk>2014-09-27 10:33:40 +0100
commit3cfd0b7dbd27a6c5e29eac1a3312d9a1156540e3 (patch)
tree72544d19224c0b838d7d0cd4ca0fe8151b2f2c2a /src
parent9d1bb49af84df3a3f9142cc68a9cc170ac470c4b (diff)
downloadleaflet-soton-3cfd0b7dbd27a6c5e29eac1a3312d9a1156540e3.tar
leaflet-soton-3cfd0b7dbd27a6c5e29eac1a3312d9a1156540e3.tar.gz
Fix storage timeout
Diffstat (limited to 'src')
-rw-r--r--src/leaflet-soton.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/leaflet-soton.js b/src/leaflet-soton.js
index ad6c8b4..d7739a0 100644
--- a/src/leaflet-soton.js
+++ b/src/leaflet-soton.js
@@ -27,7 +27,7 @@
'localStorage' in window && window['localStorage'] !== null) {
if ("data" in localStorage) {
- var refetchTime = localStorage.dataTimestamp + LS.localStorageTimeout;
+ var refetchTime = parseInt(localStorage.dataTimestamp, 10) + LS.localStorageTimeout;
if (refetchTime > new Date().getTime()) {
LS.data = JSON.parse(localStorage.data);