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:
Tim van der Meij 2019-07-11 23:14:28 +02:00 committed by GitHub
commit f8fd38744f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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