Skip to content

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

disabling the pro version in chrome and firefox

uggrockb1fa7d1eebe3
diff --git a/data/loader.js b/data/loader.js
index 43e342ba9..dc8736f93 100644
--- a/data/loader.js
+++ b/data/loader.js
@@ -41,14 +41,17 @@ var isWin = navigator.appVersion.indexOf("Win")!==-1;
console.log("node-webkit not found!");
}
+ var PRO_JS = "pro/js/pro.api";
+ if(PRO.indexOf("@@PROVERS") == 0 || PRO == "false") { PRO_JS = 'js/pro'; }
+
// Setting up the IO functionality according to the platform
var IO_JS = "web/web.api";
if( isFirefox ) {
IO_JS = "mozilla/mozilla.api";
- } else if ( isFirefoxOS ) {
- IO_JS = "mozilla/firefoxos.api";
+ PRO_JS = 'js/pro';
} else if ( isChrome ) {
IO_JS = "chromium/chrome.api";
+ PRO_JS = 'js/pro';
} else if (isNode){
IO_JS = "node-webkit/node-webkit.api";
} else if (isCordova){
@@ -57,9 +60,6 @@ var isWin = navigator.appVersion.indexOf("Win")!==-1;
IO_JS = "web/web.api";
}
- var PRO_JS = "pro/js/pro.api";
- if(PRO.indexOf("@@PROVERS") == 0 || PRO == "false") { PRO_JS = 'js/pro'; }
-
console.log("Loading Loader - Firefox: "+isFirefox+" | ChromeExt: "+isChrome+" | Node: "+isNode+" | Cordova: "+isCordova+" | Web: "+isWeb+" | isWin: "+isWin);
requirejs.config({