mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-19 14:48:08 +02:00
Merge pull request #5511 from gijsk/patch-1
Bug 639134 - update check for document colors
This commit is contained in:
commit
8389f1d792
1 changed files with 5 additions and 1 deletions
|
@ -381,7 +381,11 @@ ChromeActions.prototype = {
|
|||
return (!!prefBrowser && prefGfx);
|
||||
},
|
||||
supportsDocumentColors: function() {
|
||||
return getBoolPref('browser.display.use_document_colors', true);
|
||||
if (getIntPref('browser.display.document_color_use', 0) == 2 ||
|
||||
!getBoolPref('browser.display.use_document_colors', true)) {
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
},
|
||||
reportTelemetry: function (data) {
|
||||
var probeInfo = JSON.parse(data);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue