mirror of
https://github.com/zen-browser/pdf.js.git
synced 2025-07-08 01:10:08 +02:00
Add the possibility to dispatch some pdf.js events at the chrome level (bug 1904585)
This commit is contained in:
parent
11cb3a8e11
commit
35474f8ef4
4 changed files with 72 additions and 24 deletions
|
@ -407,6 +407,14 @@ class ExternalServices extends BaseExternalServices {
|
|||
);
|
||||
return nimbusData && JSON.parse(nimbusData);
|
||||
}
|
||||
|
||||
async getGlobalEventNames() {
|
||||
return FirefoxCom.requestAsync("getGlobalEventNames", null);
|
||||
}
|
||||
|
||||
dispatchGlobalEvent(event) {
|
||||
FirefoxCom.request("dispatchGlobalEvent", event);
|
||||
}
|
||||
}
|
||||
|
||||
export { DownloadManager, ExternalServices, initCom, MLManager, Preferences };
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue