Skip to content

TagSpaces is an offline, open source, document manager with tagging support

Jquery 2.0 improvements

uggrock1f4089e3b3ef
diff --git a/data/js/core.api.js b/data/js/core.api.js
index c00f61837..6fa84ad89 100644
--- a/data/js/core.api.js
+++ b/data/js/core.api.js
@@ -50,7 +50,7 @@ define(function(require, exports, module) {
tsSettings.loadSettingsLocalStorage();
// In firefox, by empty local storage trying to load the settings from mozilla preferences
- if(tsSettings.Settings == undefined && $.browser.mozilla) {
+ if(tsSettings.Settings == undefined && isFirefox) {
window.setTimeout(tsIOApi.loadSettings, 1000); // executes initUI and updateSettingMozillaPreferences by success
console.debug("Loading setting with from mozilla pref execured with delay...");
}