1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-23 20:32:25 +01:00

allow setting firefox prefs to IP addresses.

This commit is contained in:
Tim Hammerquist
2008-06-18 19:03:25 +00:00
parent e4680bfd2e
commit df7b8857a2

View File

@@ -360,9 +360,8 @@ liberator.Options = function () //{{{
value = false; value = false;
break; break;
default: default:
var valueInt = parseInt(value, 10); if (/^(\d+)$/.test(value))
if (!isNaN(valueInt)) value = parseInt(value, 10);
value = valueInt;
} }
liberator.options.setPref(name, value); liberator.options.setPref(name, value);
} }