Skip to content

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

fixed image opening in android

uggrock77ebdc5acbeb
diff --git a/data/ext/viewerImage/viewerUI.js b/data/ext/viewerImage/viewerUI.js
index 5fc5aab40..40b11f2ca 100644
--- a/data/ext/viewerImage/viewerUI.js
+++ b/data/ext/viewerImage/viewerUI.js
@@ -14,8 +14,13 @@ console.log("Loading UI for Image Viewer");
function ExtUI(extID, extContainerID, filePath) {
this.extensionID = extID;
this.containerElem = $('#'+extContainerID);
-
- this.filePath = "file:///"+filePath;
+
+ //TODO minimize platform specific calls
+ if(isCordova) {
+ this.filePath = filePath;
+ } else {
+ this.filePath = "file:///"+filePath;
+ }
}
ExtUI.prototype.buildUI = function() {
diff --git a/data/js/core.ui.js b/data/js/core.ui.js
index 9b6570c87..ebe795425 100644
--- a/data/js/core.ui.js
+++ b/data/js/core.ui.js
@@ -242,7 +242,7 @@ define(function(require, exports, module) {
TSCORE.showConfirmDialog(
"Warning",
"Are you sure you want to restore the default application settings?\n"+
- +"All manually made changes such as tags and taggroups will be lost.",
+ "All manually made changes such as tags and taggroups will be lost.",
function() {
TSCORE.Config.loadDefaultSettings();
}