Skip to content

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

adding handling of the web version

Ilian809d472826a0
diff --git a/data/ext/viewerImage/viewerUI.js b/data/ext/viewerImage/viewerUI.js
index c79f884a3..24f4bf44d 100644
--- a/data/ext/viewerImage/viewerUI.js
+++ b/data/ext/viewerImage/viewerUI.js
@@ -16,8 +16,7 @@ console.log("Loading UI for Image Viewer");
this.internPath = filePath;
- //TODO minimize platform specific calls
- if(isCordova) {
+ if(isCordova || isWeb) {
this.filePath = filePath;
} else {
this.filePath = "file:///"+filePath;