mirror of https://github.com/vitalif/phantomjs
pizza.coffee: Add missing onConsoleMessage.
parent
2c8e9bd5b4
commit
e5064db060
|
@ -2,6 +2,9 @@
|
||||||
|
|
||||||
page = new WebPage()
|
page = new WebPage()
|
||||||
|
|
||||||
|
page.onConsoleMessage = (msg) ->
|
||||||
|
console.log(msg);
|
||||||
|
|
||||||
page.open 'http://www.google.com/m/local?site=local&q=pizza+in+new+york',
|
page.open 'http://www.google.com/m/local?site=local&q=pizza+in+new+york',
|
||||||
(status) ->
|
(status) ->
|
||||||
if status isnt 'success'
|
if status isnt 'success'
|
||||||
|
|
Loading…
Reference in New Issue