1
0
Fork 0
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:
Jonas Jenwald 2017-03-13 17:35:33 +01:00
parent 2b17188998
commit 6d672c4ba6
7 changed files with 20 additions and 5 deletions

View file

@ -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();
});