mirror of
https://github.com/gorhill/uBlock.git
synced 2024-10-06 01:27:12 +02:00
no need for if there
This commit is contained in:
parent
2e4b96157c
commit
048711509b
14
js/ublock.js
14
js/ublock.js
@ -57,16 +57,14 @@
|
||||
}
|
||||
|
||||
// Remove from exception list
|
||||
if ( newState ) {
|
||||
var hostnames = this.URI.allHostnamesFromHostname(hostname);
|
||||
while ( hostname = hostnames.shift() ) {
|
||||
if ( netExceptionList[hostname] !== undefined ) {
|
||||
delete netExceptionList[hostname];
|
||||
}
|
||||
var hostnames = this.URI.allHostnamesFromHostname(hostname);
|
||||
while ( hostname = hostnames.shift() ) {
|
||||
if ( netExceptionList[hostname] !== undefined ) {
|
||||
delete netExceptionList[hostname];
|
||||
}
|
||||
this.saveExceptionList();
|
||||
return false;
|
||||
}
|
||||
this.saveExceptionList();
|
||||
return false;
|
||||
};
|
||||
|
||||
/******************************************************************************/
|
||||
|
Loading…
Reference in New Issue
Block a user