From 02cefe55383c534c67dde12973314a7c96e0b6cd Mon Sep 17 00:00:00 2001 From: ripexz Date: Mon, 11 Aug 2014 18:56:07 +0100 Subject: [PATCH] Moved to different server --- badge.js | 2 +- badge.min.js | 2 +- manifest.json | 2 +- popup.js | 2 +- popup.min.js | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/badge.js b/badge.js index 750bc35..5319494 100644 --- a/badge.js +++ b/badge.js @@ -5,7 +5,7 @@ function updateBadge(data) { } function getMatchCount() { var req = new XMLHttpRequest(); - req.open("GET", 'http://www.ripexz.com/csgobetalert/get_json.php', true); + req.open("GET", 'http://eyeur.com/csgo/get_json.php', true); req.onload = updateBadge.bind(this); req.send(null); } diff --git a/badge.min.js b/badge.min.js index cbebeee..c56e05c 100644 --- a/badge.min.js +++ b/badge.min.js @@ -1,5 +1,5 @@ function updateBadge(data){var matchObj=JSON.parse(data.target.responseText);var str_num=matchObj.matches.length+'';chrome.browserAction.setBadgeText({text:str_num});} -function getMatchCount(){var req=new XMLHttpRequest();req.open("GET",'http://www.ripexz.com/csgobetalert/get_json.php',true);req.onload=updateBadge.bind(this);req.send(null);} +function getMatchCount(){var req=new XMLHttpRequest();req.open("GET",'http://eyeur.com/csgo/get_json.php',true);req.onload=updateBadge.bind(this);req.send(null);} function addAlarm(){chrome.alarms.get("csgobetalert",function(alarm){if(typeof alarm=="undefined"){chrome.alarms.create("csgobetalert",{when:Date.now(),periodInMinutes:5.0});}});} chrome.alarms.onAlarm.addListener(function(alarm){if(alarm.name=="csgobetalert"){getMatchCount();}});chrome.runtime.onStartup.addListener(function(){addAlarm();});chrome.runtime.onInstalled.addListener(function(){addAlarm();}); \ No newline at end of file diff --git a/manifest.json b/manifest.json index b19ddc7..00ccf85 100644 --- a/manifest.json +++ b/manifest.json @@ -3,7 +3,7 @@ "name": "CS:GO Bet Alert", "description": "CS:GO Bet Alert lists any active games on CS:GO Lounge so that you never miss the chance to lose your rares!", - "version": "1.0.1", + "version": "1.0.2", "icons": { "16": "icon16.png", diff --git a/popup.js b/popup.js index 7a9428f..2ff3be0 100644 --- a/popup.js +++ b/popup.js @@ -1,6 +1,6 @@ var csgobetalert = { - reqUrl: 'http://www.ripexz.com/csgobetalert/get_json.php', + reqUrl: 'http://eyeur.com/csgo/get_json.php', getData: function() { var req = new XMLHttpRequest(); diff --git a/popup.min.js b/popup.min.js index b0fb515..9c994e9 100644 --- a/popup.min.js +++ b/popup.min.js @@ -1,5 +1,5 @@ -var csgobetalert={reqUrl:'http://www.ripexz.com/csgobetalert/get_json.php',getData:function(){var req=new XMLHttpRequest();req.open("GET",this.reqUrl,true);req.onload=this.listMatches.bind(this);req.send(null);},listMatches:function(data){var matchObj=JSON.parse(data.target.responseText);if(matchObj.matches&&matchObj.matches.length>0){for(var i=0;i'+matchObj.matches[i].team1+'vs'+matchObj.matches[i].team2+'';document.getElementById('match_list').appendChild(p);} +var csgobetalert={reqUrl:'http://eyeur.com/csgo/get_json.php',getData:function(){var req=new XMLHttpRequest();req.open("GET",this.reqUrl,true);req.onload=this.listMatches.bind(this);req.send(null);},listMatches:function(data){var matchObj=JSON.parse(data.target.responseText);if(matchObj.matches&&matchObj.matches.length>0){for(var i=0;i'+matchObj.matches[i].team1+'vs'+matchObj.matches[i].team2+'';document.getElementById('match_list').appendChild(p);} var str_num=i+'';this.applyBindings();} else{var p=document.createElement('p');p.innerHTML='No active matches found.';document.getElementById('match_list').appendChild(p);var str_num='0';} chrome.browserAction.setBadgeText({text:str_num});},applyBindings:function(){var links=document.getElementsByTagName("p");for(var i=0;i