fixing chrome conflict
This commit is contained in:
@@ -10,9 +10,6 @@ import html2canvas from 'html2canvas';
|
|||||||
*/
|
*/
|
||||||
export const fromDom = element =>
|
export const fromDom = element =>
|
||||||
html2canvas(element, {
|
html2canvas(element, {
|
||||||
allowTaint: false,
|
|
||||||
useCORS: true,
|
|
||||||
foreignObjectRendering: true,
|
|
||||||
logging: false,
|
logging: false,
|
||||||
}).then(canvas => canvas.toDataURL('image/jpeg'));
|
}).then(canvas => canvas.toDataURL('image/jpeg'));
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user