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:
Jonas Jenwald 2019-07-11 11:44:49 +02:00
parent d7afb74a6e
commit 9a4d14bf36

View File

@ -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() {