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); });