Browse Source

Merge pull request #5369 from Snuffleupagus/viewer-temp-pref-names

Fix inconsistencies in the preference names used by PDFViewerApplication
Tim van der Meij 11 years ago
parent
commit
2b8ff7bd49
  1. 8
      web/viewer.js

8
web/viewer.js

@ -104,8 +104,8 @@ var PDFViewerApplication = {
animationStartedPromise: null, animationStartedPromise: null,
mouseScrollTimeStamp: 0, mouseScrollTimeStamp: 0,
mouseScrollDelta: 0, mouseScrollDelta: 0,
preferenceSidebarViewOnLoad: false, preferenceSidebarViewOnLoad: SidebarView.NONE,
preferencesPdfBugEnabled: false, preferencePdfBugEnabled: false,
isViewerEmbedded: (window.parent !== window), isViewerEmbedded: (window.parent !== window),
url: '', url: '',
@ -222,7 +222,7 @@ var PDFViewerApplication = {
self.preferenceSidebarViewOnLoad = value; self.preferenceSidebarViewOnLoad = value;
}), }),
Preferences.get('pdfBugEnabled').then(function resolved(value) { Preferences.get('pdfBugEnabled').then(function resolved(value) {
self.preferencesPdfBugEnabled = value; self.preferencePdfBugEnabled = value;
}), }),
Preferences.get('disableTextLayer').then(function resolved(value) { Preferences.get('disableTextLayer').then(function resolved(value) {
if (PDFJS.disableTextLayer === true) { if (PDFJS.disableTextLayer === true) {
@ -1485,7 +1485,7 @@ function webViewerInitialized() {
//#if !PRODUCTION //#if !PRODUCTION
if (true) { if (true) {
//#else //#else
//if (PDFViewerApplication.preferencesPdfBugEnabled) { //if (PDFViewerApplication.preferencePdfBugEnabled) {
//#endif //#endif
// Special debugging flags in the hash section of the URL. // Special debugging flags in the hash section of the URL.
var hash = document.location.hash.substring(1); var hash = document.location.hash.substring(1);

Loading…
Cancel
Save