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

html2canvas -- add allowTaint option

parent 2dc5d421
......@@ -15,6 +15,7 @@
const scrollY = window.scrollY
html2canvas(captureBody, {
allowTaint: true,
x: scrollX,
y: scrollY,
width: viewportWidth,
......@@ -22,7 +23,6 @@
scrollX: 0, // reset scrollX for canvas capturing
scrollY: 0, // reset scrollY for canvas capturing
scale: 1.3,
useCORS: true,
}).then(canvas => {
screenshotImg.src = canvas.toDataURL()
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