Skip to content

Commit

Permalink
Merge pull request #59 from minsooshin/master
Browse files Browse the repository at this point in the history
Set default width and height for phantomjs viewport
  • Loading branch information
daffl committed Jan 26, 2016
2 parents b817f6d + 8089e74 commit 207d041
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions resources/phantom.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@
var page = require('webpage').create();
var system = require('system');

page.viewportSize = {
width: 1280,
height: 800
};

page.onError = function(msg, trace) {
var msgStack = ['ERROR: ' + msg];
if (trace && trace.length) {
Expand Down

0 comments on commit 207d041

Please sign in to comment.