Browse Source

Ignore "ready" message here.

pull/196/head
Joachim Bauch 10 years ago
parent
commit
a1288820bd
  1. 2
      static/js/directives/pdfcanvas.js
  2. 2
      static/js/directives/youtubevideo.js

2
static/js/directives/pdfcanvas.js

@ -44,6 +44,8 @@ define(['require', 'underscore', 'jquery', 'text!partials/pdfcanvas_sandbox.html @@ -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);

2
static/js/directives/youtubevideo.js

@ -115,6 +115,8 @@ define(['require', 'jquery', 'underscore', 'moment', 'text!partials/youtubevideo @@ -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");

Loading…
Cancel
Save