From 5992e9b2aa5003b9d41a0c7815ee95bad4ad7b67 Mon Sep 17 00:00:00 2001 From: Marcin Kulik Date: Mon, 27 Feb 2017 11:32:36 +0100 Subject: [PATCH] Remove dead code --- app/views/api/asciicasts/show.html.slim | 9 --------- 1 file changed, 9 deletions(-) diff --git a/app/views/api/asciicasts/show.html.slim b/app/views/api/asciicasts/show.html.slim index 8918e04..c86a039 100644 --- a/app/views/api/asciicasts/show.html.slim +++ b/app/views/api/asciicasts/show.html.slim @@ -14,13 +14,4 @@ javascript: var h = Math.max(document.body.scrollHeight, document.body.offsetHeight); target.postMessage(['asciicast:size', { width: w, height: h }], '*'); } - - function onMessage(e) { - var event = e.data[0]; - if (event == 'asciicast:play') { - // player.play(); // TODO - } - } - - window.addEventListener("message", onMessage, false); });