mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-19 14:48:08 +02:00
Merge pull request #5367 from yurydelendik/fixpdfbug
Fixes enabling pdfBug
This commit is contained in:
commit
dfd23b50cb
1 changed files with 3 additions and 0 deletions
|
@ -104,6 +104,8 @@ var PDFViewerApplication = {
|
|||
animationStartedPromise: null,
|
||||
mouseScrollTimeStamp: 0,
|
||||
mouseScrollDelta: 0,
|
||||
preferenceSidebarViewOnLoad: false,
|
||||
preferencesPdfBugEnabled: false,
|
||||
isViewerEmbedded: (window.parent !== window),
|
||||
url: '',
|
||||
|
||||
|
@ -211,6 +213,7 @@ var PDFViewerApplication = {
|
|||
pageCountField: document.getElementById('pageCountField')
|
||||
});
|
||||
|
||||
var self = this;
|
||||
var initializedPromise = Promise.all([
|
||||
Preferences.get('enableWebGL').then(function resolved(value) {
|
||||
PDFJS.disableWebGL = !value;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue