1
0
mirror of https://github.com/gorhill/uBlock.git synced 2024-09-15 07:22:28 +02:00

fixed bug introduced in last commit

This commit is contained in:
gorhill 2014-07-20 15:17:35 -04:00
parent b82742d126
commit 32b836559b

View File

@ -29,6 +29,7 @@
var userListName = chrome.i18n.getMessage('1pPageName');
var selectedBlacklistsHash = '';
var listURLPrefix = 'asset-viewer.html?url=';
/******************************************************************************/
@ -122,7 +123,7 @@ var renderBlacklists = function() {
'<li class="listDetails">',
'<input type="checkbox" {{checked}}>',
'&thinsp;',
'<a href="asset-viewer.html?url={{URL}}" type="text/plain">',
'<a href="', listURLPrefix, '{{URL}}" type="text/plain">',
'{{name}}',
'</a>',
': ',
@ -251,7 +252,11 @@ var blacklistsApplyHandler = function() {
var i = lis.length();
var path;
while ( i-- ) {
path = lis.subset(i).find('a').attr('href');
path = lis
.subset(i)
.find('a')
.attr('href')
.replace(listURLPrefix, '');
switches.push({
location: path,
off: lis.subset(i).find('input').prop('checked') === false