1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-01-28 16:45:47 +01:00

Fix #258: :set urlseparator= results in infinite loop

This commit is contained in:
Kris Maglione
2009-05-01 14:26:14 -04:00
parent 42fba96bdf
commit e5dc623247
2 changed files with 14 additions and 16 deletions

View File

@@ -461,12 +461,16 @@ const config = { //{{{
"Change the title of the window",
"string", "Vimperator",
{
getter: function() {
return document.getElementById(config.mainWindowID || "main-window")
.getAttribute("titlemodifier");
},
setter: function (value)
{
try
{
let id = config.mainWindowID || "main-window";
document.getElementById(id).setAttribute("titlemodifier", value);
document.getElementById(config.mainWindowID || "main-window")
.setAttribute("titlemodifier", value);
if (window.content.document.title.length > 0)
document.title = window.content.document.title + " - " + value;
else