From 3cfd0b7dbd27a6c5e29eac1a3312d9a1156540e3 Mon Sep 17 00:00:00 2001 From: Christopher Baines Date: Sat, 27 Sep 2014 10:33:15 +0100 Subject: Fix storage timeout --- src/leaflet-soton.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- cgit v1.2.3