I was using this script with these settings:
<script type="text/javascript">
window.takeScreenShot = function() {
html2canvas(document.getElementById("masterslider"), {
onrendered: function (canvas) {
document.body.appendChild(canvas);
},
width:null,
height:null,
allowTaint:true
});
}
</script>
After latest release, i don`t know where to put options (width,height,taint):
<script type="text/javascript">
window.takeScreenShot = function() {
html2canvas(document.getElementById("masterslider")).then(function(canvas) {
document.body.appendChild(canvas);
});
}
</script>
Can you help me and show, where to put options?