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

@ -70,7 +70,7 @@ class Toolbar {
{ element: options.download, eventName: "download" },
{ element: options.viewBookmark, eventName: null },
];
if (typeof PDFJSDev === "undefined" || !PDFJSDev.test("MOZCENTRAL")) {
if (typeof PDFJSDev === "undefined" || PDFJSDev.test("GENERIC")) {
this.buttons.push({ element: options.openFile, eventName: "openfile" });
}
this.items = {