code review

This commit is contained in:
gorhill 2014-07-20 19:52:32 -04:00
parent d77f148362
commit 3b6b6721d9
2 changed files with 5 additions and 7 deletions

View File

@ -411,12 +411,10 @@ var updateFromRemote = function(details, callback) {
// - a github repo URL
var getThirdpartyHomeURL = function() {
// If it is a 3rd-party, look-up home server URL, if any.
if ( targetPath.indexOf('assets/thirdparties/') === 0 ) {
homeURL = targetPath.replace('assets/thirdparties/', '');
if ( thirdpartyHomeURLs && thirdpartyHomeURLs[homeURL] ) {
homeURL = thirdpartyHomeURLs[homeURL];
} else {
homeURL = 'http://' + homeURL;
if ( thirdpartyHomeURLs && targetPath.indexOf('assets/thirdparties/') === 0 ) {
var k = targetPath.replace('assets/thirdparties/', '');
if ( thirdpartyHomeURLs[k] ) {
homeURL = thirdpartyHomeURLs[k];
}
}
// If there is a home server, disregard checksum: the file is assumed

View File

@ -44,7 +44,7 @@ return {
},
updateAssetsEvery: 2 * 24 * 60 * 60 * 1000,
projectServerRoot: 'https://raw2.github.com/gorhill/ublock/master/',
projectServerRoot: 'https://raw.githubusercontent.com/gorhill/uBlock/master/',
userFiltersPath: 'assets/user/filters.txt',
// list of remote blacklist locations