|
|
@ -44,6 +44,8 @@ define(['require', 'underscore', 'jquery', 'text!partials/pdfcanvas_sandbox.html |
|
|
|
var msg = message.data; |
|
|
|
var msg = message.data; |
|
|
|
var data = msg[msg.type] || {}; |
|
|
|
var data = msg[msg.type] || {}; |
|
|
|
switch (msg.type) { |
|
|
|
switch (msg.type) { |
|
|
|
|
|
|
|
case "ready": |
|
|
|
|
|
|
|
break; |
|
|
|
case "pdfjs.loading": |
|
|
|
case "pdfjs.loading": |
|
|
|
$scope.$apply(function(scope) { |
|
|
|
$scope.$apply(function(scope) { |
|
|
|
scope.$emit("presentationLoading", data.source); |
|
|
|
scope.$emit("presentationLoading", data.source); |
|
|
|