1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-23 13:02:27 +01:00

fixed some muttator specific errors in the console

This commit is contained in:
Martin Stubenschrott
2008-08-02 17:04:45 +00:00
parent b724e81194
commit f762f9e35b
4 changed files with 28 additions and 26 deletions

View File

@@ -376,6 +376,28 @@ liberator.config = { //{{{
}
});
liberator.options.add(["titlestring"],
"Change the title of the window",
"string", "Vimperator",
{
setter: function (value)
{
try
{
var id = liberator.config.mainWindowID || "main-window";
document.getElementById(id).setAttribute("titlemodifier", value);
if (window.content.document.title.length > 0)
document.title = window.content.document.title + " - " + value;
else
document.title = value;
}
catch (e)
{
liberator.log("Couldn't set titlestring", 3);
}
}
});
liberator.options.add(["urlseparator"],
"Set the separator regexp used to separate multiple URL args",
"string", ",\\s");