mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-22 16:18:08 +02:00
[api-minor] Add a (static) PDFWorker.getWorkerSrc
method that returns the current workerSrc
This method returns the currently used `workerSrc`, which thus allows obtaining the fallback `workerSrc` value (e.g. when the option wasn't set by the user).
This commit is contained in:
parent
c56f3f04dd
commit
a5aaf62754
2 changed files with 10 additions and 1 deletions
|
@ -1485,6 +1485,10 @@ var PDFWorker = (function PDFWorkerClosure() {
|
|||
return new PDFWorker(null, port);
|
||||
};
|
||||
|
||||
PDFWorker.getWorkerSrc = function() {
|
||||
return getWorkerSrc();
|
||||
};
|
||||
|
||||
return PDFWorker;
|
||||
})();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue