mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-23 22:42:26 +01:00
allow setting firefox prefs to IP addresses.
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user