Skip to content

Commit

Permalink
Fix for fix
Browse files Browse the repository at this point in the history
  • Loading branch information
a0o committed Jun 18, 2018
1 parent f3ae270 commit 82641b7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/watir-get-image-content/image.rb
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ def to_x_base64(target)
ctx.drawImage(arguments[0], 0, 0);
var dataURL = canvas.toDataURL("image/#{target}");
return dataURL.replace(/^data:image\\/(png|jpg|gif);base64,/, "");}
driver.execute_script js, @element, natural_width, natural_height
driver.execute_script js, @element, naturalwidth, naturalheight
end

def to_png_base64
Expand Down

0 comments on commit 82641b7

Please sign in to comment.