// Handle
window.handleOpenURL = function handleOpenURL(intent) {
  console.info('Triggered by intent:', intent);
  // Dont block the cordova plugins
  Meteor.defer(function() {
    var parsedUrl = intent.match(intentPattern);

    if (parsedUrl) {
      var [/* url */, name, /* path */, base64, queryString] = parsedUrl;
      var data = {};

      // convert queryString into object
      if (base64) {
        try {
          data = objectFromBase64(queryString);
        } catch(ignore) {}
      } else {
        data = parseQueryString(queryString);
      }

      DeepLink.emitState(name, data, ...parsedUrl);

    }

    DeepLink.emitState('INTENT', intent);

  });
};

handleOpenURL = window.handleOpenURL;

// Support browser intents
if (!Meteor.isCordova) {
  var parsedBrowserUrl = window.location.href.match(browserIntentPattern);
  if (parsedBrowserUrl) {
    var [, intent] = parsedBrowserUrl;
    handleOpenURL(intent);
  }
}

@@ -166,16 +166,17 @@
 function
+ 
 () %7B%0A   
@@ -254,16 +254,17 @@
    var %5B
+ 
 /* url *
@@ -264,16 +264,17 @@
 * url */
+ 
 , name, 
@@ -283,16 +283,17 @@
  path */
+ 
 , base64
@@ -383,16 +383,43 @@
  object%0A
+      if (queryString) %7B%0A  
       if
@@ -442,14 +442,18 @@
     
+  
 try %7B%0A
+  
     
@@ -508,15 +508,18 @@
     
+  
 %7D catch
+ 
 (ign
@@ -526,16 +526,18 @@
 ore) %7B%7D%0A
+  
       %7D 
@@ -547,24 +547,26 @@
 e %7B%0A        
+  
 data = parse
@@ -587,24 +587,34 @@
 eryString);%0A
+        %7D%0A
       %7D%0A%0A   
@@ -662,17 +662,16 @@
 edUrl);%0A
-%0A
     %7D%0A%0A 

fix querystring