summary refs log tree commit diff
path: root/assets
diff options
context:
space:
mode:
Diffstat (limited to 'assets')
-rw-r--r--assets/js/main.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/assets/js/main.js b/assets/js/main.js
index 7e56b3d..d0cc1c9 100644
--- a/assets/js/main.js
+++ b/assets/js/main.js
@@ -47,6 +47,10 @@ $(function () {
 });
 
 function getSearchJSON(callback) {
+    if (typeof Storage == 'undefined') {
+        $.getJSON("/search.json", callback);
+        return;
+    }
     var searchData = JSON.parse(localStorage.getItem("blog_" + lastUpdated.valueOf()));
     if (!searchData) {
         for (var i = 0; i < localStorage.length; i++) {