[Pkg-javascript-commits] [pdf.js] 90/141: Print WebGL status in the console

David Prévot taffit at moszumanska.debian.org
Sat Apr 19 22:40:33 UTC 2014


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

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

commit 965f7a7b14964f681b550e53d1424e73acf8be9c
Author: Jonas Jenwald <jonas.jenwald at gmail.com>
Date:   Tue Apr 8 02:24:22 2014 +0200

    Print WebGL status in the console
---
 web/viewer.js | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/web/viewer.js b/web/viewer.js
index 7003d9c..4aa1cd5 100644
--- a/web/viewer.js
+++ b/web/viewer.js
@@ -1104,7 +1104,8 @@ var PDFView = {
       console.log('PDF ' + pdfDocument.fingerprint + ' [' +
                   info.PDFFormatVersion + ' ' + (info.Producer || '-').trim() +
                   ' / ' + (info.Creator || '-').trim() + ']' +
-                  (PDFJS.version ? ' (PDF.js: ' + PDFJS.version + ')' : ''));
+                  ' (PDF.js: ' + (PDFJS.version || '-') +
+                  (!PDFJS.disableWebGL ? ' [WebGL]' : '') + ')');
 
       var pdfTitle;
       if (metadata && metadata.has('dc:title')) {

-- 
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