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