Merge pull request #10962 from Snuffleupagus/TextLayer-uncaught-promise-msg
Prevent "Uncaught promise" messages in the console when cancelling `TextLayer` tasks (PR 10601 follow-up)
This commit is contained in:
commit
f8fd38744f
@ -500,7 +500,7 @@ var renderTextLayer = (function renderTextLayerClosure() {
|
|||||||
this._layoutTextCtx.canvas.height = 0;
|
this._layoutTextCtx.canvas.height = 0;
|
||||||
this._layoutTextCtx = null;
|
this._layoutTextCtx = null;
|
||||||
}
|
}
|
||||||
});
|
}).catch(() => { /* Avoid "Uncaught promise" messages in the console. */ });
|
||||||
}
|
}
|
||||||
TextLayerRenderTask.prototype = {
|
TextLayerRenderTask.prototype = {
|
||||||
get promise() {
|
get promise() {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user