diff --git a/content/liberator.js b/content/liberator.js
index 2c9b5f49..d127add6 100644
--- a/content/liberator.js
+++ b/content/liberator.js
@@ -507,7 +507,7 @@ const liberator = (function () //{{{
{
// flash the visual bell
var popup = document.getElementById("liberator-visualbell");
- var win = getBrowser().mPanelContainer;
+ var win = liberator.config.visualbellWindow;
var box = document.getBoxObjectFor(win);
popup.style.cssText = vbs;
diff --git a/content/muttator.js b/content/muttator.js
index 7986f40a..e6ad669d 100644
--- a/content/muttator.js
+++ b/content/muttator.js
@@ -43,6 +43,7 @@ liberator.config = {
GetThreadTree();
},
get mainWindowID() { return this.isComposeWindow ? "msgcomposeWindow" : "messengerWindow"; },
+ get visualbellWindow() { return document.getElementById(this.mainWindowID); },
isComposeWindow: false,
autocommands: [["FolderLoaded", "Triggered after switching folders in Thunderbird"],
diff --git a/content/muttator.xul b/content/muttator.xul
index 5a1d61d7..cc95ac47 100644
--- a/content/muttator.xul
+++ b/content/muttator.xul
@@ -77,6 +77,8 @@ the terms of any one of the MPL, the GPL or the LGPL.
+
+
diff --git a/content/vimperator.js b/content/vimperator.js
index 070224f7..5b85e033 100644
--- a/content/vimperator.js
+++ b/content/vimperator.js
@@ -36,6 +36,8 @@ liberator.config = { //{{{
defaults: { guioptions: "" },
guioptions: { m: ["toolbar-menubar"], T: ["nav-bar"], b: ["PersonalToolbar"] },
+ get visualbellWindow() { return getBrowser().mPanelContainer; },
+
autocommands: [["LocationChange", "Triggered when changing tabs or when naviagtion to a new location"],
["PageLoadPre", "Triggered after a page load is initiated"],
["PageLoad", "Triggered when a page gets (re)loaded/opened"],