Skip to content

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

TS70 added file association iOS

Borislav Sapundzhievfdf9a142b093
diff --git a/data/cordova/cordova.api.js b/data/cordova/cordova.api.js
index 643fc7149..34091c5ff 100644
--- a/data/cordova/cordova.api.js
+++ b/data/cordova/cordova.api.js
@@ -18,6 +18,7 @@ define(function(require, exports, module) {
var urlFromIntent;
document.addEventListener("deviceready", onDeviceReady, false);
+ document.addEventListener("resume", onDeviceResume, false);
// Cordova loaded and can be used
function onDeviceReady() {
@@ -51,6 +52,11 @@ define(function(require, exports, module) {
getFileSystem();
}
+ function onDeviceResume() {
+ //TODO: reload curtent dir after background operation
+ TSCORE.IO.listDirectory(TSCORE.currentPath);
+ }
+
var handleStartParameters = function() {
if (urlFromIntent !== undefined && urlFromIntent.length > 0) {
console.log("Intent URL: " + urlFromIntent);