Stop bundling the openFile-buttons in the CHROME build

This is, for all intents and purposes, equivalent to PR 14833 and slightly reduces the size of the `gulp chromium` output.
This commit is contained in:
Jonas Jenwald 2022-05-07 22:05:39 +02:00
parent d1f13a6af3
commit 80910f44e5
6 changed files with 13 additions and 11 deletions

View file

@ -135,7 +135,7 @@ class SecondaryToolbar {
close: true,
},
];
if (typeof PDFJSDev === "undefined" || !PDFJSDev.test("MOZCENTRAL")) {
if (typeof PDFJSDev === "undefined" || PDFJSDev.test("GENERIC")) {
this.buttons.push({
element: options.openFileButton,
eventName: "openfile",