This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var tweet; | |
var twitter_id = ""; | |
var twitter_pw = ""; | |
var phase; | |
var setState = function(nextPhase) { | |
var s = {tweet: tweet, twitter_id: twitter_id, twitter_pw: twitter_pw, phase: nextPhase}; | |
phantom.state = JSON.stringify(s); | |
}; | |
if(!phantom.state.length) { | |
var i, args = Array.prototype.slice.apply(phantom.args); |