[Pkg-javascript-commits] [pdf.js] 27/109: Add `disableStream` to the list of preferences read by `PDFViewerApplication.initialize` (issue 6361)

David Prévot taffit at moszumanska.debian.org
Fri Sep 25 03:04:14 UTC 2015


This is an automated email from the git hooks/post-receive script.

taffit pushed a commit to branch master
in repository pdf.js.

commit a6d10af3b44dfa56f55b38149e6aaab47c9bdb7b
Author: Jonas Jenwald <jonas.jenwald at gmail.com>
Date:   Tue Aug 18 12:35:42 2015 +0200

    Add `disableStream` to the list of preferences read by `PDFViewerApplication.initialize` (issue 6361)
    
    Fixes 6361.
---
 web/viewer.js | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/web/viewer.js b/web/viewer.js
index 8090fb2..dd664e9 100644
--- a/web/viewer.js
+++ b/web/viewer.js
@@ -271,6 +271,12 @@ var PDFViewerApplication = {
         }
         PDFJS.disableRange = value;
       }),
+      Preferences.get('disableStream').then(function resolved(value) {
+        if (PDFJS.disableStream === true) {
+          return;
+        }
+        PDFJS.disableStream = value;
+      }),
       Preferences.get('disableAutoFetch').then(function resolved(value) {
         PDFJS.disableAutoFetch = value;
       }),

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/pdf.js.git



More information about the Pkg-javascript-commits mailing list