Explorar o código

Update formatSvgToImg.ts

lex hai 1 ano
pai
achega
3878353413
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  1. 2 0
      src/views/accompany/formatSvgToImg.ts

+ 2 - 0
src/views/accompany/formatSvgToImg.ts

@@ -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)
   }