Skip to content

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

calling checkAccessFileURLAllowed only if existent

uggrock657e5f91b1e3
diff --git a/data/js/core.api.js b/data/js/core.api.js
index 56956578d..38ea7a555 100644
--- a/data/js/core.api.js
+++ b/data/js/core.api.js
@@ -89,7 +89,7 @@ define(function(require, exports, module) {
}
switchInterfaceLanguage(language);
initKeyBindings();
- tsIOApi.checkAccessFileURLAllowed();
+ tsIOApi.checkAccessFileURLAllowed?tsIOApi.checkAccessFileURLAllowed():true;
// Show welcome dialog of first start
if (tsSettings.isFirstRun()) {
tsCoreUI.showWelcomeDialog();
@@ -157,6 +157,7 @@ define(function(require, exports, module) {
});
}
+ // TODO
function checkForNewVersion() {
if (tsSettings.getCheckForUpdates()) {
tsIOApi.checkNewVersion();
diff --git a/data/js/fileopener.js b/data/js/fileopener.js
index 96ec92156..c85a1668b 100644
--- a/data/js/fileopener.js
+++ b/data/js/fileopener.js
@@ -244,7 +244,7 @@ define(function(require, exports, module) {
$viewer.find('*').off();
$viewer.find('*').unbind();
$viewer.find('*').remove();
- TSCORE.IO.checkAccessFileURLAllowed();
+ TSCORE.IO.checkAccessFileURLAllowed?TSCORE.IO.checkAccessFileURLAllowed():true;
TSCORE.IO.getFileProperties(filePath.replace('\\\\', '\\'));
updateUI();
if (editMode) {
diff --git a/data/js/perspective.manager.js b/data/js/perspective.manager.js
index 0253b8ada..c1f9f422c 100644
--- a/data/js/perspective.manager.js
+++ b/data/js/perspective.manager.js
@@ -57,7 +57,7 @@ define(function(require, exports, module) {
}
if (lastLocation && lastLocation.length >= 1) {
TSCORE.openLocation(lastLocation);
- TSCORE.IO.checkAccessFileURLAllowed();
+ TSCORE.IO.checkAccessFileURLAllowed?TSCORE.IO.checkAccessFileURLAllowed():true;
var evt = TSCORE.createDocumentEvent("initApp");
TSCORE.fireDocumentEvent(evt);
$("#viewContainers").removeClass("appBackgroundTile");