Merge pull request #4597 from Snuffleupagus/webgl-console

Print WebGL status in the console
This commit is contained in:
Yury Delendik 2014-04-11 09:00:04 -05:00
commit fe093a37ad

View File

@ -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')) {