Kaynağa Gözat

Update formatSvgToImg.ts

lex 9 ay önce
ebeveyn
işleme
3878353413
1 değiştirilmiş dosya ile 2 ekleme ve 0 silme
  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)
   }