diff --git a/content/options.js b/content/options.js index a047b40b..74109719 100644 --- a/content/options.js +++ b/content/options.js @@ -360,9 +360,8 @@ liberator.Options = function () //{{{ value = false; break; default: - var valueInt = parseInt(value, 10); - if (!isNaN(valueInt)) - value = valueInt; + if (/^(\d+)$/.test(value)) + value = parseInt(value, 10); } liberator.options.setPref(name, value); }