Skip to content

Commit e55061d

Browse files
committed
Added willReadFrequently to canvas operations in emoji to fix a warning.
1 parent 74d65f5 commit e55061d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/ckeditor5-emoji/src/utils/isemojisupported.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ export default function isEmojiSupported( unicode: string ): boolean {
7373

7474
function getCanvas(): CanvasRenderingContext2D | null {
7575
try {
76-
return document.createElement( 'canvas' ).getContext( '2d' );
76+
return document.createElement( 'canvas' ).getContext( '2d', { willReadFrequently: true } );
7777
} catch {
7878
/* istanbul ignore next -- @preserve */
7979
return null;

0 commit comments

Comments
 (0)