mirror of https://github.com/gorhill/uBlock.git
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