Skip to content

Commit

Permalink
Fix export of NativeStreamImageDecoder
Browse files Browse the repository at this point in the history
  • Loading branch information
pbrant committed Feb 14, 2017
1 parent f0411cf commit 8f5fc8d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/display/api.js
Original file line number Diff line number Diff line change
Expand Up @@ -1670,7 +1670,7 @@ var InternalRenderTask = (function InternalRenderTaskClosure() {
return InternalRenderTask;
})();

var NativeImageStreamDecoder = (function NativeImageStreamDecoderClosure() {
var NativeImageStreamDecoder = PDFJS.NativeImageStreamDecoder = (function NativeImageStreamDecoderClosure() {
var result = {
init: function(module) {
info('Initializing native image stream decoder message handler');
Expand Down
5 changes: 2 additions & 3 deletions web/viewer.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@
OverlayManager, PDFFindController, PDFFindBar, getVisibleElements,
watchScroll, PDFViewer, PDFRenderingQueue, PresentationModeState,
RenderingStates, DEFAULT_SCALE, UNKNOWN_SCALE,
NativeImageStreamDecoder,
IGNORE_CURRENT_POSITION_ON_ZOOM: true */

'use strict';
Expand Down Expand Up @@ -1477,15 +1476,15 @@ function webViewerInitialized() {

var initImageStreamDecoder = function() {
console.info('Native image stream decoder module loaded successfully.');
NativeImageStreamDecoder.init(moduleEl);
PDFJS.NativeImageStreamDecoder.init(moduleEl);
};
var disableImageStreamDecoder = function(which) {
return function() {
console.error(
'Image stream decoder has stopped (' + which +
'). Last error was ' + moduleEl.lastError + '.'
);
NativeImageStreamDecoder.disable();
PDFJS.NativeImageStreamDecoder.disable();
}
};

Expand Down

0 comments on commit 8f5fc8d

Please sign in to comment.