Skip to content

Commit

Permalink
Fixing black background color bug
Browse files Browse the repository at this point in the history
html2canvas was setting the background to color black, making saved images unreadable.
  • Loading branch information
abv authored Aug 18, 2016
1 parent cd9ce9b commit af3cb16
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -344,6 +344,7 @@ <h2 id="welcome">DetectRTC!</h2>
this.parentNode.removeChild(this);

html2canvas(browserFeaturesTable.parentNode, {
background :'#FFFFFF',
grabMouse: false,
onrendered: function(canvas) {
var image = canvas.toDataURL('image/jpeg');
Expand Down

0 comments on commit af3cb16

Please sign in to comment.