mirror of
https://github.com/gorhill/uBlock.git
synced 2024-10-06 09:37:12 +02:00
code review
This commit is contained in:
parent
69ec33dc3a
commit
7373fb77f5
@ -142,16 +142,8 @@ vAPI.browserSettings = {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Current value is same as original
|
|
||||||
if ( this.getValue(path, setting) === value ) {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
// Reset to original value
|
// Reset to original value
|
||||||
try {
|
this.setValue(path, setting, value);
|
||||||
this.setValue(path, setting, value);
|
|
||||||
} catch (ex) {
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
|
|
||||||
getValue: function(path, setting) {
|
getValue: function(path, setting) {
|
||||||
|
Loading…
Reference in New Issue
Block a user