Fixes enabling pdfBug

This commit is contained in:
Yury Delendik 2014-09-30 15:19:39 -05:00
parent 5c56cdc544
commit 5e0b2d383f

View File

@ -104,6 +104,8 @@ var PDFViewerApplication = {
animationStartedPromise: null, animationStartedPromise: null,
mouseScrollTimeStamp: 0, mouseScrollTimeStamp: 0,
mouseScrollDelta: 0, mouseScrollDelta: 0,
preferenceSidebarViewOnLoad: false,
preferencesPdfBugEnabled: false,
isViewerEmbedded: (window.parent !== window), isViewerEmbedded: (window.parent !== window),
url: '', url: '',
@ -211,6 +213,7 @@ var PDFViewerApplication = {
pageCountField: document.getElementById('pageCountField') pageCountField: document.getElementById('pageCountField')
}); });
var self = this;
var initializedPromise = Promise.all([ var initializedPromise = Promise.all([
Preferences.get('enableWebGL').then(function resolved(value) { Preferences.get('enableWebGL').then(function resolved(value) {
PDFJS.disableWebGL = !value; PDFJS.disableWebGL = !value;