mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-26 10:08:06 +02:00
[api-minor] Add a pdfjsNext
parameter, and PDFJS_NEXT
build flag, to allow backwards incompatible API changes
This commit is contained in:
parent
2b17188998
commit
6d672c4ba6
7 changed files with 20 additions and 5 deletions
|
@ -60,6 +60,8 @@ function initializePDFJS(callback) {
|
|||
|
||||
// Configure the worker.
|
||||
displayGlobal.PDFJS.workerSrc = '../../src/worker_loader.js';
|
||||
// Opt-in to using the latest API.
|
||||
displayGlobal.PDFJS.pdfjsNext = true;
|
||||
|
||||
callback();
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue