소스 검색

Update formatSvgToImg.ts

lex 1 년 전
부모
커밋
3878353413
1개의 변경된 파일2개의 추가작업 그리고 0개의 파일을 삭제
  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)
   }