mirror of
https://github.com/zen-browser/pdf.js.git
synced 2025-07-08 09:20:06 +02:00
Merge pull request #15987 from Snuffleupagus/onOpenWithTransport-params
Remove unused parameters from the `onOpenWithTransport` method in `PDFViewerApplication.initPassiveLoading`
This commit is contained in:
commit
b75dafba87
3 changed files with 27 additions and 27 deletions
|
@ -749,8 +749,8 @@ const PDFViewerApplication = {
|
|||
throw new Error("Not implemented: initPassiveLoading");
|
||||
}
|
||||
this.externalServices.initPassiveLoading({
|
||||
onOpenWithTransport: (url, length, transport) => {
|
||||
this.open({ url, length, range: transport });
|
||||
onOpenWithTransport: range => {
|
||||
this.open({ range });
|
||||
},
|
||||
onOpenWithData: (data, contentDispositionFilename) => {
|
||||
if (isPdfFile(contentDispositionFilename)) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue