mirror of
https://github.com/zen-browser/pdf.js.git
synced 2025-07-08 17:30:09 +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
|
@ -305,6 +305,8 @@ function getDefaultSetting(id) {
|
|||
return globalSettings ? globalSettings.externalLinkRel : DEFAULT_LINK_REL;
|
||||
case 'enableStats':
|
||||
return !!(globalSettings && globalSettings.enableStats);
|
||||
case 'pdfjsNext':
|
||||
return !!(globalSettings && globalSettings.pdfjsNext);
|
||||
default:
|
||||
throw new Error('Unknown default setting: ' + id);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue