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:
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user