|
@@ -22,8 +22,8 @@ if (typeof PDFJS === 'undefined') {
|
|
(typeof window !== 'undefined' ? window : this).PDFJS = {};
|
|
(typeof window !== 'undefined' ? window : this).PDFJS = {};
|
|
}
|
|
}
|
|
|
|
|
|
-PDFJS.version = '1.1.26';
|
|
|
|
-PDFJS.build = '3821b2d';
|
|
|
|
|
|
+PDFJS.version = '1.1.28';
|
|
|
|
+PDFJS.build = 'a931885';
|
|
|
|
|
|
(function pdfjsWrapper() {
|
|
(function pdfjsWrapper() {
|
|
// Use strict in our context only - users might not want it
|
|
// Use strict in our context only - users might not want it
|
|
@@ -239,17 +239,10 @@ function warn(msg) {
|
|
// Fatal errors that should trigger the fallback UI and halt execution by
|
|
// Fatal errors that should trigger the fallback UI and halt execution by
|
|
// throwing an exception.
|
|
// throwing an exception.
|
|
function error(msg) {
|
|
function error(msg) {
|
|
- // If multiple arguments were passed, pass them all to the log function.
|
|
|
|
- if (arguments.length > 1) {
|
|
|
|
- var logArguments = ['Error:'];
|
|
|
|
- logArguments.push.apply(logArguments, arguments);
|
|
|
|
- console.log.apply(console, logArguments);
|
|
|
|
- // Join the arguments into a single string for the lines below.
|
|
|
|
- msg = [].join.call(arguments, ' ');
|
|
|
|
- } else {
|
|
|
|
|
|
+ if (PDFJS.verbosity >= PDFJS.VERBOSITY_LEVELS.errors) {
|
|
console.log('Error: ' + msg);
|
|
console.log('Error: ' + msg);
|
|
|
|
+ console.log(backtrace());
|
|
}
|
|
}
|
|
- console.log(backtrace());
|
|
|
|
UnsupportedManager.notify(UNSUPPORTED_FEATURES.unknown);
|
|
UnsupportedManager.notify(UNSUPPORTED_FEATURES.unknown);
|
|
throw new Error(msg);
|
|
throw new Error(msg);
|
|
}
|
|
}
|