1
0
Fork 0
mirror of https://github.com/mozilla/pdf.js.git synced 2025-04-23 08:38:06 +02:00

Add the missing return type for PDFWorker.fromPort()

This commit is contained in:
Yeoh Joer 2025-02-28 02:49:44 +08:00
parent 50c573d16d
commit 2221ccf160

View file

@ -2336,6 +2336,7 @@ class PDFWorker {
/**
* @param {PDFWorkerParameters} params - The worker initialization parameters.
* @returns {PDFWorker}
*/
static fromPort(params) {
if (typeof PDFJSDev !== "undefined" && PDFJSDev.test("MOZCENTRAL")) {