mirror of https://github.com/vitalif/phantomjs
Use the new Twitter handle for the examples.
http://code.google.com/p/phantomjs/issues/detail?id=6091.7
parent
8d0a0b28ed
commit
281d291cfb
|
@ -1,8 +1,8 @@
|
|||
# Get twitter status for given account (or for the default one, "HeadlessPhantom")
|
||||
# Get twitter status for given account (or for the default one, "PhantomJS")
|
||||
|
||||
page = require('webpage').create()
|
||||
system = require 'system'
|
||||
twitterId = 'HeadlessPhantom' #< default value
|
||||
twitterId = 'PhantomJS' #< default value
|
||||
|
||||
# Route "console.log()" calls from within the Page context to the main Phantom context (i.e. current "this")
|
||||
page.onConsoleMessage = (msg) ->
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
// Get twitter status for given account (or for the default one, "HeadlessPhantom")
|
||||
// Get twitter status for given account (or for the default one, "PhantomJS")
|
||||
|
||||
var page = require('webpage').create(),
|
||||
system = require('system'),
|
||||
twitterId = "HeadlessPhantom"; //< default value
|
||||
twitterId = "PhantomJS"; //< default value
|
||||
|
||||
// Route "console.log()" calls from within the Page context to the main Phantom context (i.e. current "this")
|
||||
page.onConsoleMessage = function(msg) {
|
||||
|
|
Loading…
Reference in New Issue