Skip to content

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

check for intent url

Borislav Sapundzhiev6020a35cf0c1
diff --git a/data/cordova/cordova.api.js b/data/cordova/cordova.api.js
index 21be603e2..3de5357be 100644
--- a/data/cordova/cordova.api.js
+++ b/data/cordova/cordova.api.js
@@ -73,11 +73,14 @@ define(function(require, exports, module) {
if (window.plugins.webintent) {
window.plugins.webintent.getUri(
function(url) {
- if ("createTXTFile" === url || url.indexOf("TagSpaces") > 0) {
- widgetAction = url;
- } else {
- urlFromIntent = url;
+ if(url) {
+ if ("createTXTFile" === url || url.indexOf("TagSpaces") > 0) {
+ widgetAction = url;
+ } else {
+ urlFromIntent = url;
+ }
}
+
}
//, function(error) {
// TSCORE.showAlertDialog("WebIntent Error: " + error);