From 7296e05b83df9d92c138a4439bb1848213acf646 Mon Sep 17 00:00:00 2001 From: Pacien TRAN-GIRARD Date: Mon, 12 May 2014 23:26:43 +0200 Subject: Avoid circular structure event JSONification --- js/slide-controller.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'js') 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 @@ } SlideController.prototype.onMessage_ = function(e) { - console.log("Received event: " + JSON.stringify(e)); var data = e.data; + console.log("Received event: " + JSON.stringify(data)); + // Restrict messages to being from this origin. Allow local developmet // from file:// though. // TODO: It would be dope if FF implemented location.origin! -- cgit v1.2.3