Skip to content

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

Cordova iOS fixes

Borislav Sapundzhiev5316b431fead
diff --git a/data/cordova/cordova.api.js b/data/cordova/cordova.api.js
index b66daf33d..e887a1ec9 100644
--- a/data/cordova/cordova.api.js
+++ b/data/cordova/cordova.api.js
@@ -121,8 +121,10 @@ define(function(require, exports, module) {
};
function getAppStorageFileSystem(fileName, fileCallback, fail) {
-
- window.resolveLocalFileSystemURL(cordova.file.externalApplicationStorageDirectory, //dataDirectory,
+ var dataFolderPath = (isCordovaiOS === true) ?
+ cordova.file.dataDirectory : cordova.file.externalApplicationStorageDirectory;
+
+ window.resolveLocalFileSystemURL(dataFolderPath,
function(fs) {
fs.getFile(fileName, {create:true}, fileCallback, fail);
},
@@ -207,7 +209,7 @@ define(function(require, exports, module) {
window.resolveLocalFileSystemURL(fsURL,
function(fileSystem) {
fsRoot = fileSystem;
- console.log("Filesystem Details: " + JSON.stringify(fsRoot));
+ //console.log("Filesystem Details: " + JSON.stringify(fsRoot));
handleStartParameters();
loadSettingsFile(appSettingFile, function(settings) {
diff --git a/data/index.html b/data/index.html
index eaaef54d3..a6278a021 100644
--- a/data/index.html
+++ b/data/index.html
@@ -5,7 +5,7 @@
source code is governed by a AGPL3 license that can be found in the LICENSE file. -->
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
- <meta http-equiv="Content-Security-Policy" content="default-src file: ; img-src 'self' data: ; style-src 'self' 'unsafe-inline'; script-src 'self' 'unsafe-eval'">
+ <meta http-equiv="Content-Security-Policy" content="default-src file: gap:; img-src 'self' data: ; style-src 'self' 'unsafe-inline'; script-src 'self' 'unsafe-eval'">
<title>TagSpaces</title>
<style type="text/css">
#loadingLogo {