Merge pull request #6921 from Snuffleupagus/mandatory-deprecated

Always display `deprecated` messages, regardless of the verbosity setting
This commit is contained in:
Tim van der Meij 2016-01-29 12:12:08 +01:00
commit 5d797e1a85

View File

@ -246,9 +246,9 @@ function warn(msg) {
}
}
// Deprecated API function -- treated as warnings.
// Deprecated API function -- display regardless of the PDFJS.verbosity setting.
function deprecated(details) {
warn('Deprecated API usage: ' + details);
console.log('Deprecated API usage: ' + details);
}
// Fatal errors that should trigger the fallback UI and halt execution by