Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fixes #147 - remove the click handler for list.html

  • Loading branch information...
commit 9ad9bc99a608d5ea750112edf6b06449bf89f269 1 parent 05ecf19
Paul Kinlan authored
Showing with 5 additions and 2 deletions.
  1. +5 −2 server/webintents/static/controller.js
View
7 server/webintents/static/controller.js
@@ -60,7 +60,7 @@ var IntentController = new (function() {
var intentStr = window.btoa(unescape(encodeURIComponent(JSON.stringify(intent)))).replace(/=/g, "_");
var href = (e.srcElement || e.target).href;
- if(!!intent._callback == false) {
+ if(!!intent && !!intent._callback == false) {
// There is no callback so remove any reference to the intent.
localStorage.removeItem(intent._id);
}
@@ -92,7 +92,10 @@ var IntentController = new (function() {
actionLink.href = action.url;
actionLink.target = "_blank";
setText(actionLink, action.title);
- attachEventListener(actionLink, "click", launch(intent, action.disposition), false);
+
+ if(!!intent)
+ attachEventListener(actionLink, "click", launch(intent, action.disposition), false);
+
setText(domain, action.domain || "Unknown domain");
actionElement.style.clear = "both";
Please sign in to comment.
Something went wrong with that request. Please try again.