Merge pull request #15987 from Snuffleupagus/onOpenWithTransport-params

Remove unused parameters from the `onOpenWithTransport` method in `PDFViewerApplication.initPassiveLoading`
This commit is contained in:
Tim van der Meij 2023-02-04 15:07:42 +01:00 committed by GitHub
commit b75dafba87
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 27 additions and 27 deletions

View file

@ -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)) {