diff --git a/web/viewer.js b/web/viewer.js index 2b529a5cbadd2..7d6bfc9d7831a 100644 --- a/web/viewer.js +++ b/web/viewer.js @@ -223,21 +223,33 @@ var PDFView = { var initializedPromise = Promise.all([ Preferences.get('enableWebGL').then(function resolved(value) { + if (PDFJS.disableWebGL === true) { + return; + } PDFJS.disableWebGL = !value; }), Preferences.get('sidebarViewOnLoad').then(function resolved(value) { self.preferenceSidebarViewOnLoad = value; }), Preferences.get('disableTextLayer').then(function resolved(value) { + if (PDFJS.disableTextLayer === true) { + return; + } PDFJS.disableTextLayer = value; }), Preferences.get('disableRange').then(function resolved(value) { + if (PDFJS.disableRange === true) { + return; + } PDFJS.disableRange = value; }), Preferences.get('disableAutoFetch').then(function resolved(value) { PDFJS.disableAutoFetch = value; }), Preferences.get('disableFontFace').then(function resolved(value) { + if (PDFJS.disableFontFace === true) { + return; + } PDFJS.disableFontFace = value; }), Preferences.get('useOnlyCssZoom').then(function resolved(value) {