mirror of
https://github.com/zen-browser/pdf.js.git
synced 2025-07-10 02:05:37 +02:00
Detect and add fallback if document colors are disabled in Firefox - address comment
This commit is contained in:
parent
6ad7bd6be8
commit
ee83df1338
4 changed files with 25 additions and 1 deletions
|
@ -383,6 +383,9 @@ ChromeActions.prototype = {
|
|||
var prefGfx = getBoolPref('gfx.downloadable_fonts.enabled', true);
|
||||
return (!!prefBrowser && prefGfx);
|
||||
},
|
||||
supportsDocumentColors: function() {
|
||||
return getBoolPref('browser.display.use_document_colors', true);
|
||||
},
|
||||
fallback: function(url, sendResponse) {
|
||||
var self = this;
|
||||
var domWindow = this.domWindow;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue