Remove the console polyfills

All browsers that we intend to support with PDF.js version 2.0 already supports `console` natively.
This commit is contained in:
Jonas Jenwald 2017-11-16 09:34:51 +01:00
parent e162df59bb
commit 42099c564f
2 changed files with 0 additions and 88 deletions

View file

@ -1363,13 +1363,6 @@ var PDFWorker = (function PDFWorkerClosure() {
}
});
messageHandler.on('console_log', function (data) {
console.log.apply(console, data);
});
messageHandler.on('console_error', function (data) {
console.error.apply(console, data);
});
messageHandler.on('ready', (data) => {
worker.removeEventListener('error', onWorkerError);
if (this.destroyed) {