mirror of
https://github.com/zen-browser/pdf.js.git
synced 2025-07-08 09:20:06 +02:00
Adds deprecation warning for the API calls.
This commit is contained in:
parent
58c3ea0820
commit
5135aa9bec
5 changed files with 25 additions and 11 deletions
|
@ -213,6 +213,11 @@ function warn(msg) {
|
|||
}
|
||||
}
|
||||
|
||||
// Deprecated API function -- treated as warnings.
|
||||
function deprecated(details) {
|
||||
warn('Deprecated API usage: ' + details);
|
||||
}
|
||||
|
||||
// Fatal errors that should trigger the fallback UI and halt execution by
|
||||
// throwing an exception.
|
||||
function error(msg) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue