mirror of https://github.com/gorhill/uBlock.git
code review
This commit is contained in:
parent
d77f148362
commit
3b6b6721d9
10
js/assets.js
10
js/assets.js
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue