Skip to content

Commit

Permalink
Return image
Browse files Browse the repository at this point in the history
  • Loading branch information
bloodbare committed Mar 9, 2016
1 parent 918daec commit 645daa1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion webkit_server.py
Original file line number Diff line number Diff line change
Expand Up @@ -283,7 +283,7 @@ def exec_script(self, script):

def render(self, path, width = 1024, height = 1024):
""" Renders the current page to a PNG file (viewport size in pixels). """
self.conn.issue_command("Render", path, width, height)
return self.conn.issue_command("Render", path, width, height)

def set_viewport_size(self, width, height):
""" Sets the viewport size. """
Expand Down

0 comments on commit 645daa1

Please sign in to comment.