Commit 288351f6 authored by minseok.park's avatar minseok.park

html2canvas -- add allowTaint option

parent 2dc5d421
...@@ -15,6 +15,7 @@ ...@@ -15,6 +15,7 @@
const scrollY = window.scrollY const scrollY = window.scrollY
html2canvas(captureBody, { html2canvas(captureBody, {
allowTaint: true,
x: scrollX, x: scrollX,
y: scrollY, y: scrollY,
width: viewportWidth, width: viewportWidth,
...@@ -22,7 +23,6 @@ ...@@ -22,7 +23,6 @@
scrollX: 0, // reset scrollX for canvas capturing scrollX: 0, // reset scrollX for canvas capturing
scrollY: 0, // reset scrollY for canvas capturing scrollY: 0, // reset scrollY for canvas capturing
scale: 1.3, scale: 1.3,
useCORS: true,
}).then(canvas => { }).then(canvas => {
screenshotImg.src = canvas.toDataURL() screenshotImg.src = canvas.toDataURL()
captureModal.style.display = 'block' captureModal.style.display = 'block'
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment