mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-10-18 05:12:39 +02:00
Handle the silly exception thrown from options.resetPref.
This commit is contained in:
1 parent
db0fa4bc5b
commit
f96b522ec1
1 file changed
+8
-1
@@ -986,7 +986,14 @@ function Options() //{{{
|
|||||||
|
|
||||||
resetPref: function (name)
|
resetPref: function (name)
|
||||||
{
|
{
|
||||||
return service["pref"].clearUserPref(name);
|
try
|
||||||
|
{
|
||||||
|
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