1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-24 06:42:29 +01:00

rewrote mode-handling

This commit is contained in:
Martin Stubenschrott
2007-05-18 04:13:27 +00:00
parent 71189214c5
commit ac7c396023
6 changed files with 443 additions and 458 deletions

View File

@@ -271,8 +271,8 @@ var g_settings = [/*{{{*/
"<code class=\"command\">:set titlestring=Mozilla Firefox</code>.",
"string",
null,
function(value) { set_pref("title", value); set_title(value); },
function() { return get_pref("title"); },
function(value) { set_pref("titlestring", value); set_titlestring(value); },
function() { return get_pref("titlestring"); },
"Vimperator",
null
],
@@ -500,7 +500,7 @@ function set_showtabline(value)
}
}
function set_title(value)
function set_titlestring(value)
{
if (!value || typeof(value) != "string")
value = get_pref("titlestring");