Skip to content

Commit

Permalink
Merge pull request #10962 from Snuffleupagus/TextLayer-uncaught-promi…
Browse files Browse the repository at this point in the history
…se-msg

Prevent "Uncaught promise" messages in the console when cancelling `TextLayer` tasks (PR 10601 follow-up)
  • Loading branch information
timvandermeij authored Jul 11, 2019
2 parents 6e594a8 + 9a4d14b commit f8fd387
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/display/text_layer.js
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down

0 comments on commit f8fd387

Please sign in to comment.