From 87923dc23276c4937164d72e6c2a54c21c2eb1c8 Mon Sep 17 00:00:00 2001 From: rrroman Date: Sat, 4 Mar 2023 17:45:09 +0200 Subject: [PATCH] fix(is-icon-ligature): canvas2d warning --- lib/commons/text/is-icon-ligature.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/commons/text/is-icon-ligature.js b/lib/commons/text/is-icon-ligature.js index 01e97fab68..5e17c55984 100644 --- a/lib/commons/text/is-icon-ligature.js +++ b/lib/commons/text/is-icon-ligature.js @@ -85,7 +85,9 @@ function isIconLigature( } const canvasContext = cache.get('canvasContext', () => - document.createElement('canvas').getContext('2d') + document + .createElement('canvas') + .getContext('2d', { willReadFrequently: true }) ); const canvas = canvasContext.canvas;