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
@ -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…
x
Reference in New Issue
Block a user