TagSpaces is an offline, open source, document manager with tagging support
Implemented check for localStorage
uggrock2bf02885397b
diff --git a/data/ext/perspectiveHealth/quantifiedSelfViz.js b/data/ext/perspectiveHealth/myweight.jssimilarity index 100%rename from data/ext/perspectiveHealth/quantifiedSelfViz.jsrename to data/ext/perspectiveHealth/myweight.jsdiff --git a/data/js/core.api.js b/data/js/core.api.jsindex c005b4f9d..c7f0b8ab8 100644--- a/data/js/core.api.js+++ b/data/js/core.api.js@@ -49,6 +49,8 @@ define(function(require, exports, module) {tsSettings.loadSettingsLocalStorage();+ checkLocalStorageEnabled();+// In firefox, by empty local storage trying to load the settings from mozilla preferencesif(tsSettings.Settings == undefined && isFirefox) {window.setTimeout(tsIOApi.loadSettings, 1000); // executes initUI and updateSettingMozillaPreferences by success@@ -99,8 +101,7 @@ define(function(require, exports, module) {});-// $( "#toggleLeftPanel" ).tooltip( { placement: "bottom" } );- checkForNewVersion()+ checkForNewVersion();}function checkForNewVersion() {@@ -108,6 +109,16 @@ define(function(require, exports, module) {tsIOApi.checkNewVersion();}}++ function checkLocalStorageEnabled() {+ var val = 'tagspaces';+ try {+ localStorage.setItem(val, val);+ localStorage.removeItem(val);+ } catch(e) {+ tsCoreUI.showAlertDialog("Please enable the localStorage support in your browser, in order to use TagSpaces!","Error");+ }+ }function updateNewVersionData(data) {console.log("Version Information: "+data)