Skip to content

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

Fixed paths for Cordova

Borislav Sapundzhiev63443fa43ba1
diff --git a/data/ext/perspectiveImageSwiper/perspectiveUI.js b/data/ext/perspectiveImageSwiper/perspectiveUI.js
index 0d1088388..4e0c1850f 100644
--- a/data/ext/perspectiveImageSwiper/perspectiveUI.js
+++ b/data/ext/perspectiveImageSwiper/perspectiveUI.js
@@ -43,6 +43,10 @@ define(function(require, exports, module) {
if(thumb) {
doc.thumbnail = encodeURI("file://" + thumb);
}
+ if (isCordova) {
+ doc.thumbnail = doc.thumbnail.replace("file://","");
+ doc.path = doc.path.replace("file://", "");
+ }
data.push(doc);
}
});