Skip to content

Commit

Permalink
Listen for DOMContentLoaded on "appcontent".
Browse files Browse the repository at this point in the history
  • Loading branch information
arantius committed Apr 20, 2011
1 parent 7425cfd commit 06fd219
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion content/browser.js
Expand Up @@ -44,7 +44,9 @@ GM_BrowserUI.chromeLoad = function(e) {
GM_prefRoot.watch("enabled", GM_BrowserUI.refreshStatus);
GM_BrowserUI.refreshStatus();

gBrowser.addEventListener("DOMContentLoaded", GM_BrowserUI.contentLoad, true);
// Use the appcontent element specifically, see #1344.
document.getElementById("appcontent")
.addEventListener("DOMContentLoaded", GM_BrowserUI.contentLoad, true);
gBrowser.addEventListener("pagehide", GM_BrowserUI.pagehide, true);
gBrowser.addEventListener("pageshow", GM_BrowserUI.pageshow, true);

Expand Down

0 comments on commit 06fd219

Please sign in to comment.