Skip to content

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

fixing pro loading issue

uggrock1ebd565d118c
diff --git a/data/loader.js b/data/loader.js
index e815b9a24..3687fd597 100644
--- a/data/loader.js
+++ b/data/loader.js
@@ -55,8 +55,7 @@ if( isFirefox ) {
}
var PRO_JS = "pro/js/pro.api";
-// Comment this line to test the pro version if available
-if(PRO == "false" || PRO == "@@PROVERSION") { PRO_JS = 'js/pro'; }
+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);