code review

This commit is contained in:
Raymond Hill 2014-11-26 16:32:10 -02:00
parent 27eeea3618
commit 7e55dc898e
1 changed files with 6 additions and 6 deletions

View File

@ -19,13 +19,14 @@
Home: https://github.com/gorhill/uBlock
*/
/* global µBlock, uDom */
'use strict';
/* global vAPI, uDom */
/******************************************************************************/
(function() {
'use strict';
/******************************************************************************/
var userListName = vAPI.i18n('1pPageName');
@ -36,7 +37,7 @@ var cacheWasPurged = false;
var needUpdate = false;
var hasCachedContent = false;
var re3rdPartyExternalAsset = /^https?:\/\/([a-z0-9.-]+)/;
var re3rdPartyExternalAsset = /^https?:\/\/[a-z0-9]+/;
/******************************************************************************/
@ -84,14 +85,13 @@ var renderBlacklists = function() {
if ( !entry.homeDomain ) {
return '';
}
var html = [
return [
' <a href="http://',
entry.homeHostname,
'" target="_blank">(',
entry.homeDomain,
')</a>'
];
return html.join('');
].join('');
};
var purgeButtontext = vAPI.i18n('3pExternalListPurge');