1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-21 15:57:58 +01:00

Add more helpful information to safeSetPref messages.

This commit is contained in:
Kris Maglione
2009-09-22 14:12:08 -04:00
parent 7d5d9c5722
commit ec5a78ff2e
3 changed files with 15 additions and 17 deletions

View File

@@ -173,7 +173,7 @@ function Tabs() //{{{
setter: function (value)
{
let [open, restriction] = [1, 0];
for (let [, opt] in Iterator(value.split(",")))
for (let [, opt] in Iterator(this.parseValues(value)))
{
if (opt == "tab")
open = 3;
@@ -183,8 +183,8 @@ function Tabs() //{{{
restriction = 2;
}
options.safeSetPref("browser.link.open_newwindow", open);
options.safeSetPref("browser.link.open_newwindow.restriction", restriction);
options.safeSetPref("browser.link.open_newwindow", open, "See 'popups' option.");
options.safeSetPref("browser.link.open_newwindow.restriction", restriction, "See 'popups' option.");
return value;
},
completer: function (context) [