Skip to content

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

webintent handle uri

Borislav Sapundzhievb90f3792ca41
diff --git a/data/cordova/cordova.api.js b/data/cordova/cordova.api.js
index 4500f4a67..82905ccdf 100644
--- a/data/cordova/cordova.api.js
+++ b/data/cordova/cordova.api.js
@@ -51,7 +51,17 @@ define(function(require, exports, module) {
if (window.plugins.webintent) {
window.plugins.webintent.getUri(function(url) {
- urlFromIntent = url;
+ if ("createTXTFile" === intentUri) {
+ TSCORE.createTXTFile();
+ } else {
+ urlFromIntent = url;
+ }
+ });
+
+ window.plugins.webintent.onNewIntent(function(url) {
+ if ("createTXTFile" === url) {
+ TSCORE.createTXTFile();
+ }
});
}
}