aboutsummaryrefslogtreecommitdiffstats
path: root/platform
diff options
context:
space:
mode:
authorgorhill <rhill@raymondhill.net>2015-08-16 08:58:41 -0400
committergorhill <rhill@raymondhill.net>2015-08-16 08:58:41 -0400
commit7373fb77f52423edd598369ef55fab282d948949 (patch)
treec6c28688a0040520b62c6d7fde73f0b9f47da048 /platform
parent69ec33dc3ab436a7afa9be6675780165497ece09 (diff)
downloaduBlock-7373fb77f52423edd598369ef55fab282d948949.zip
uBlock-7373fb77f52423edd598369ef55fab282d948949.tar.gz
uBlock-7373fb77f52423edd598369ef55fab282d948949.tar.bz2
code review
Diffstat (limited to 'platform')
-rw-r--r--platform/firefox/vapi-background.js10
1 files changed, 1 insertions, 9 deletions
diff --git a/platform/firefox/vapi-background.js b/platform/firefox/vapi-background.js
index 19dfbb8..f78f693 100644
--- a/platform/firefox/vapi-background.js
+++ b/platform/firefox/vapi-background.js
@@ -142,16 +142,8 @@ vAPI.browserSettings = {
return;
}
- // Current value is same as original
- if ( this.getValue(path, setting) === value ) {
- return;
- }
-
// Reset to original value
- try {
- this.setValue(path, setting, value);
- } catch (ex) {
- }
+ this.setValue(path, setting, value);
},
getValue: function(path, setting) {