diepAPI
diepAPI copied to clipboard
className fix
Other classes could be added via styling or by hooking to document.createElement(). This is the safe way to do it.
thanks for you pr, i have left some comments 👍
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;