mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-21 08:58:00 +01:00
Handle the silly exception thrown from options.resetPref.
This commit is contained in:
@@ -985,8 +985,15 @@ function Options() //{{{
|
|||||||
},
|
},
|
||||||
|
|
||||||
resetPref: function (name)
|
resetPref: function (name)
|
||||||
|
{
|
||||||
|
try
|
||||||
{
|
{
|
||||||
return service["pref"].clearUserPref(name);
|
return service["pref"].clearUserPref(name);
|
||||||
|
}
|
||||||
|
catch (e)
|
||||||
|
{
|
||||||
|
// ignore - thrown if not a user set value
|
||||||
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
// this works only for booleans
|
// this works only for booleans
|
||||||
|
|||||||
Reference in New Issue
Block a user