aboutsummaryrefslogtreecommitdiffstats
path: root/options.html
diff options
context:
space:
mode:
authorPhil Crosby2010-01-18 01:23:20 -0800
committerPhil Crosby2010-01-18 01:23:23 -0800
commit097d51c5e8a4a037b75214ac271423f1303c151e (patch)
treeb5abe8ab5991275187ba9b8ebfad437f1679af5c /options.html
parent86483bbfb426951c358cb50e768a81b7d6af84b2 (diff)
downloadvimium-097d51c5e8a4a037b75214ac271423f1303c151e.tar.bz2
Make the comparison between text values and integer default settings less confusing.
There's no bug here, but this needed a readability improvement.
Diffstat (limited to 'options.html')
-rw-r--r--options.html2
1 files changed, 1 insertions, 1 deletions
diff --git a/options.html b/options.html
index 29ff949c..6f719f80 100644
--- a/options.html
+++ b/options.html
@@ -80,7 +80,7 @@
for (var i = 0; i < editableFields.length; i++) {
var fieldName = editableFields[i];
var fieldValue = $(fieldName).value.trim();
- if (fieldValue == defaultSettings[fieldName])
+ if (fieldValue == defaultSettings[fieldName].toString())
delete localStorage[fieldName];
else
localStorage[fieldName] = fieldValue;