Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fixes #163 - removing redundent console.logs, and checking for existence

  • Loading branch information...
commit ae989dad9d0aae37879bc1e9ac92e617b3b724fa 1 parent 206d5a5
Paul Kinlan authored
View
7 server/webintents/static/webintents-server.js
@@ -135,7 +135,11 @@ try {
if(verified) window.parent.opener.close();
}
}
-catch(e) { console.log(e);}
+catch(e) {
+ if(!!console && !!console.log) {
+ console.log(e);
+ }
+}
var MessageDispatcher = function() {
@@ -264,7 +268,6 @@ var MessageDispatcher = function() {
var MessageHandler = function() {
var dispatcher = new MessageDispatcher();
this.handler = function(e) {
- console.log(e);
var data;
if(!!e.data) {
data = JSON.parse(e.data);
View
5 src/webintents.js
@@ -97,7 +97,7 @@
parseIntentsDocument();
}
} catch (err) {
- console.log(err);
+ if(!!console && !!console.log) console.log(err);
}
};
@@ -133,7 +133,6 @@
}
}
- console.log("Attempting to register");
iframe.contentWindow.postMessage(
_str({
request: "register",
@@ -258,7 +257,7 @@
window.Intent = Intent;
window.navigator.startActivity = intents.startActivity;
- // console.log("name:" + window.name)
+
if(window.name != "") {
// Verify the source of the intent data.
var verified = false;
Please sign in to comment.
Something went wrong with that request. Please try again.