From f6790eb500bacfa44062cd610473673543539563 Mon Sep 17 00:00:00 2001 From: "Alex A. Naanou" Date: Sun, 13 Dec 2015 18:45:00 +0300 Subject: [PATCH] turnes out IE does not give localStorage to file://*, added aplicability testing to support this... Signed-off-by: Alex A. Naanou --- ui (gen4)/viewer.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ui (gen4)/viewer.js b/ui (gen4)/viewer.js index c547680d..1bd9439b 100755 --- a/ui (gen4)/viewer.js +++ b/ui (gen4)/viewer.js @@ -1991,6 +1991,8 @@ module.ConfigLocalStorage = ImageGridFeatures.Feature({ 'ui', ], + isApplicable: function(){ return localStorage != null }, + actions: ConfigLocalStorageActions, handlers: [ @@ -4678,6 +4680,8 @@ module.URLHistoryLocalStorage = ImageGridFeatures.Feature({ 'url-history', ], + isApplicable: function(){ return localStorage != null }, + actions: URLHistoryLocalStorageActions, // NOTE: loading is done by the .url_history prop...