mo пре 2 година
родитељ
комит
f384690ee9
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      src/helpers/imageFunction.ts

+ 1 - 1
src/helpers/imageFunction.ts

@@ -39,7 +39,7 @@ export const addWatermark = async (canvas, text) => {
 
     img.src = imgList
 
-    img.setAttribute('crossOrigin', 'anonymous') // 防止跨域引起的 Failed to execute 'toDataURL' on 'HTMLCanvasElement': Tainted canvases may not be exported.
+    // img.setAttribute('crossOrigin', 'anonymous') // 防止跨域引起的 Failed to execute 'toDataURL' on 'HTMLCanvasElement': Tainted canvases may not be exported.
 
     await new Promise(resolve => (img.onload = resolve))