diepAPI icon indicating copy to clipboard operation
diepAPI copied to clipboard

className fix

Open supahero1 opened this issue 3 years ago • 1 comments

Other classes could be added via styling or by hooking to document.createElement(). This is the safe way to do it.

supahero1 avatar Dec 27 '22 10:12 supahero1

thanks for you pr, i have left some comments 👍

Cazka avatar Dec 27 '22 11:12 Cazka

closing this, since we are now using Symbols:

const CANVAS_KIT_BYPASS = Symbol('CanvasKit-bypass');
...
const canvas = document.createElement('canvas');
(canvas as any)[CANVAS_KIT_BYPASS] = true;

Cazka avatar Dec 13 '25 18:12 Cazka