aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPacien TRAN-GIRARD2014-05-12 23:26:43 +0200
committerPacien TRAN-GIRARD2014-05-12 23:26:43 +0200
commit7296e05b83df9d92c138a4439bb1848213acf646 (patch)
tree461bffa72096a7b53cc812d11fc4d916123a6ae4
parentab4cae65f423ecaff16345051007c7002cba797b (diff)
downloadio-slides-remote-7296e05b83df9d92c138a4439bb1848213acf646.tar.gz
Avoid circular structure event JSONification
-rw-r--r--js/slide-controller.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/js/slide-controller.js b/js/slide-controller.js
index a247b91..2af62e9 100644
--- a/js/slide-controller.js
+++ b/js/slide-controller.js
@@ -126,10 +126,11 @@
126 } 126 }
127 127
128 SlideController.prototype.onMessage_ = function(e) { 128 SlideController.prototype.onMessage_ = function(e) {
129 console.log("Received event: " + JSON.stringify(e));
130 129
131 var data = e.data; 130 var data = e.data;
132 131
132 console.log("Received event: " + JSON.stringify(data));
133
133 // Restrict messages to being from this origin. Allow local developmet 134 // Restrict messages to being from this origin. Allow local developmet
134 // from file:// though. 135 // from file:// though.
135 // TODO: It would be dope if FF implemented location.origin! 136 // TODO: It would be dope if FF implemented location.origin!