mirror of
https://github.com/zen-browser/pdf.js.git
synced 2025-07-09 09:45:42 +02:00
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:
parent
e162df59bb
commit
42099c564f
2 changed files with 0 additions and 88 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue