Skip to content

Commit

Permalink
Only disable HWA in m-c build and for local dev
Browse files Browse the repository at this point in the history
This way, we keep pdf.js working as before except for Firefox.
  • Loading branch information
calixteman committed Jun 16, 2024
1 parent 831a526 commit 52a06e6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion extensions/chromium/preferences_schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,10 @@
"default": false
},
"enableHWA": {
"title": "Enable hardware acceleration",
"description": "Whether to enable hardware acceleration.",
"type": "boolean",
"default": false
"default": true
},
"enableML": {
"type": "boolean",
Expand Down
2 changes: 1 addition & 1 deletion web/app_options.js
Original file line number Diff line number Diff line change
Expand Up @@ -312,7 +312,7 @@ const defaultOptions = {
},
enableHWA: {
/** @type {boolean} */
value: false,
value: typeof PDFJSDev !== "undefined" && !PDFJSDev.test("MOZCENTRAL"),
kind: OptionKind.API + OptionKind.VIEWER + OptionKind.PREFERENCE,
},
enableXfa: {
Expand Down

0 comments on commit 52a06e6

Please sign in to comment.