@@ -38,6 +38,8 @@ let canvas = null as any
export const svgtopng = async (svg: any, width: any, height: any) => {
if (!canvas) {
+ // eslint-disable-next-line @typescript-eslint/ban-ts-comment
+ // @ts-ignore
canvas = new OffscreenCanvas(width, height)
}