Interactive interface for browsing global, full-resolution satellite imagery
Better localStorage check
Josiah Sprague17fd76744c8f
diff --git a/web/js/util/wv.util.browser.js b/web/js/util/wv.util.browser.jsindex 3d6e0dd66..d2e680c2f 100644--- a/web/js/util/wv.util.browser.js+++ b/web/js/util/wv.util.browser.js@@ -207,13 +207,15 @@ wv.util.browser = wv.util.browser || (function() {return false;}try {- localStorage.setItem("available", "true");- localStorage.getItem('available');- localStorage.removeItem('available');+ var uid = new Date();+ var result;+ localStorage.setItem(uid, uid);+ result = localStorage.getItem(uid) == uid;+ localStorage.removeItem(uid);+ return result && true;} catch (error) {return false;}- return true;};self.tests.small = function() {