Browse Source

Update formatSvgToImg.ts

lex 9 tháng trước cách đây
mục cha
commit
3878353413
1 tập tin đã thay đổi với 2 bổ sung0 xóa
  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)
   }