mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-22 16:18:08 +02:00
Prevent "Uncaught promise" messages in the console when cancelling TextLayer
tasks (PR 10601 follow-up)
Since `finally` won't stop error propagation, this causes unnecessary messages to be printed in the console whenever a `TextLayer` task is cancelled.
This commit is contained in:
parent
d7afb74a6e
commit
9a4d14bf36
1 changed files with 1 additions and 1 deletions
|
@ -500,7 +500,7 @@ var renderTextLayer = (function renderTextLayerClosure() {
|
|||
this._layoutTextCtx.canvas.height = 0;
|
||||
this._layoutTextCtx = null;
|
||||
}
|
||||
});
|
||||
}).catch(() => { /* Avoid "Uncaught promise" messages in the console. */ });
|
||||
}
|
||||
TextLayerRenderTask.prototype = {
|
||||
get promise() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue