Skip to content

Commit

Permalink
aggressive
Browse files Browse the repository at this point in the history
  • Loading branch information
Gary Teh authored and Gary Teh committed Oct 20, 2012
1 parent 7677264 commit 56a1078
Showing 1 changed file with 7 additions and 11 deletions.
18 changes: 7 additions & 11 deletions chrollusion.safariextension/chrome/scripts/recommends.js
Expand Up @@ -22,19 +22,15 @@

var recommends = function(initializedCallback) {
var self = this;
if(!self.deserialize(localStorage.recommendsCampaigns)) {
var xhrD = new XMLHttpRequest();
xhrD.open("GET", "http://artariteenageriot.disconnect.me:9000/campaignData", true);
xhrD.onreadystatechange = function() {
if (xhrD.readyState == 4 && xhrD.status == 200) {
localStorage.recommendsCampaigns = xhrD.responseText;
}
self.setCurrentCampaign(initializedCallback);
var xhrD = new XMLHttpRequest();
xhrD.open("GET", "http://artariteenageriot.disconnect.me:9000/campaignData", true);
xhrD.onreadystatechange = function() {
if (xhrD.readyState == 4 && xhrD.status == 200) {
localStorage.recommendsCampaigns = xhrD.responseText;
}
xhrD.send();
} else {
self.setCurrentCampaign(initializedCallback);
self.setCurrentCampaign(initializedCallback);
}
xhrD.send();
};

recommends.prototype.defaultCampaign = {
Expand Down

0 comments on commit 56a1078

Please sign in to comment.