Skip to content

Commit

Permalink
[capturePage] Updated capturePage to use NativeImage.toPNG (#297)
Browse files Browse the repository at this point in the history
  • Loading branch information
scottrippey authored and ckerr committed Jun 9, 2018
1 parent 12fe913 commit c527b4e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/api.js
Original file line number Diff line number Diff line change
Expand Up @@ -315,7 +315,7 @@ Api.prototype.addCapturePageSupport = function () {
if (rect != null) args.push(rect)
args.push(function (image) {
if (image != null) {
done(image.toPng().toString('base64'))
done(image.toPNG().toString('base64'))
} else {
done(image)
}
Expand Down

0 comments on commit c527b4e

Please sign in to comment.