X-Git-Url: https://git.saurik.com/cydia.git/blobdiff_plain/daf7f6e251032ba487bf5cd0b1aa392db7b9e892..6895ceafe1ea62220c0df671a43c406232a60d82:/Cydia.app/package.js diff --git a/Cydia.app/package.js b/Cydia.app/package.js index 8cca069f..6e091cf2 100644 --- a/Cydia.app/package.js +++ b/Cydia.app/package.js @@ -33,10 +33,6 @@ function space(selector, html, max) { } } -function cache(url) { - return url.replace('://', '://wpc.03A4.edgecastcdn.net/8003A4/'); -} - var swap_, swap = function (on, off, time) { setTimeout(swap_(on, off, time), time); }; @@ -57,7 +53,9 @@ var special_ = function () { var idc = encodeURIComponent(id); var name = package.name; var icon = 'cydia://package-icon/' + idc; + var api = 'http://cydia.saurik.com/api/'; + var capi = 'http://cache.cydia.saurik.com/api/'; var support = package.support; @@ -71,7 +69,7 @@ var special_ = function () { $("#name").html(name); space("#latest", package.latest, 96); - $.xhr(cache(api + 'package/' + idc), 'GET', {}, null, { + $.xhr(capi + 'package/' + idc, 'GET', {}, null, { success: function (value) { value = eval(value);