From a1288820bdc933c1e3af33a3c706909c6c2c7b93 Mon Sep 17 00:00:00 2001 From: Joachim Bauch Date: Fri, 24 Apr 2015 11:51:57 +0200 Subject: [PATCH] Ignore "ready" message here. --- static/js/directives/pdfcanvas.js | 2 ++ static/js/directives/youtubevideo.js | 2 ++ 2 files changed, 4 insertions(+) diff --git a/static/js/directives/pdfcanvas.js b/static/js/directives/pdfcanvas.js index 8c51ab15..e4a11bfc 100644 --- a/static/js/directives/pdfcanvas.js +++ b/static/js/directives/pdfcanvas.js @@ -44,6 +44,8 @@ define(['require', 'underscore', 'jquery', 'text!partials/pdfcanvas_sandbox.html var msg = message.data; var data = msg[msg.type] || {}; switch (msg.type) { + case "ready": + break; case "pdfjs.loading": $scope.$apply(function(scope) { scope.$emit("presentationLoading", data.source); diff --git a/static/js/directives/youtubevideo.js b/static/js/directives/youtubevideo.js index 9b8b8b6d..3ab4b928 100644 --- a/static/js/directives/youtubevideo.js +++ b/static/js/directives/youtubevideo.js @@ -115,6 +115,8 @@ define(['require', 'jquery', 'underscore', 'moment', 'text!partials/youtubevideo var msg = message.data; var data = msg[msg.type] || {}; switch (msg.type) { + case "ready": + break; case "youtube.apiReady": $scope.$apply(function() { console.log("YouTube IFrame ready");