niklasvh / html2canvas

Screenshots with JavaScript
https://html2canvas.hertzen.com/
MIT License
30.5k stars 4.8k forks source link

Console error In Chrome and Safari #1462

Open wombatastronaut opened 6 years ago

wombatastronaut commented 6 years ago

Version: html2canvas@1.0.0-alpha.10

I encountered this error in a vue application Chrome - http://prntscr.com/ioskoz Safari - http://prntscr.com/iosmik

Here's my code html2canvas(el, { backgroundColor: null }).then((canvas) => { })

I also tried using catch html2canvas(el, { backgroundColor: null }).then((canvas) => { }, function(error){ })

wombatastronaut commented 6 years ago
html2canvas(el, { backgroundColor: null })
.then((canvas) => {
   console.log(canvas); 
}).catch((e) => {
    console.log(e);
})

I also tried this, still the same error