TagSpaces is an offline, open source, document manager with tagging support
correcting opening external files
uggrockbf1c45b2bf48
diff --git a/data/cordova/cordova.api.js b/data/cordova/cordova.api.jsindex 09a3b570c..83d5a07f8 100644--- a/data/cordova/cordova.api.js+++ b/data/cordova/cordova.api.js@@ -978,7 +978,11 @@ define(function(require, exports, module) {*/function openFile(filePath) {console.log("Opening natively: " + filePath);- window.plugins.fileOpener.open(filePath);+ if (filePath.indexOf("http://") === 0 || filePath.indexOf("https://") === 0) {+ window.open(filePath, '_system');+ } else {+ window.plugins.fileOpener.open(filePath);+ }}// Platform specific API callsdiff --git a/data/js/core.ui.js b/data/js/core.ui.jsindex 882549230..c98ba0ef5 100644--- a/data/js/core.ui.js+++ b/data/js/core.ui.js@@ -768,12 +768,7 @@ define(function(require, exports, module) {// Handle external linksfunction openLinkExternally(url) {- if (isNode || isElectron) {- TSCORE.IO.openFile(url);- } else {- // _system is needed for cordova- window.open(url, '_system');- }+ TSCORE.IO.openFile(url);}function clearSearchFilter() {