mirror of https://github.com/vitalif/phantomjs
Actually add parameter to WebPage constructor
parent
102b421617
commit
74db4807d5
|
@ -3,7 +3,7 @@
|
||||||
|
|
||||||
// This allows creating a new web page using the construct "new WebPage",
|
// This allows creating a new web page using the construct "new WebPage",
|
||||||
// which feels more natural than "phantom.createWebPage()".
|
// which feels more natural than "phantom.createWebPage()".
|
||||||
window.WebPage = function () {
|
window.WebPage = function (opts) {
|
||||||
var page = phantom.createWebPage(),
|
var page = phantom.createWebPage(),
|
||||||
handlers = {};
|
handlers = {};
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue