1
0
Fork 0
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:
Jonas Jenwald 2018-01-29 15:58:40 +01:00
parent c56f3f04dd
commit a5aaf62754
2 changed files with 10 additions and 1 deletions

View file

@ -1485,6 +1485,10 @@ var PDFWorker = (function PDFWorkerClosure() {
return new PDFWorker(null, port);
};
PDFWorker.getWorkerSrc = function() {
return getWorkerSrc();
};
return PDFWorker;
})();