mirror of
https://github.com/zen-browser/pdf.js.git
synced 2025-07-08 01:10:08 +02:00
[GeckoView] Add a button to download and open the file in an external app (bug 1829367)
This commit is contained in:
parent
f151a39d14
commit
a652dc85e4
10 changed files with 54 additions and 16 deletions
|
@ -32,7 +32,10 @@ class Toolbar {
|
|||
*/
|
||||
constructor(options, eventBus, _l10n) {
|
||||
this.#eventBus = eventBus;
|
||||
this.#buttons = [{ element: options.download, eventName: "download" }];
|
||||
this.#buttons = [
|
||||
{ element: options.download, eventName: "download" },
|
||||
{ element: options.openInApp, eventName: "openinexternalapp" },
|
||||
];
|
||||
|
||||
// Bind the event listeners for click and various other actions.
|
||||
this.#bindListeners(options);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue