Skip to content

Commit

Permalink
Also process document starts for "reload" case.
Browse files Browse the repository at this point in the history
  • Loading branch information
arantius committed Jul 20, 2011
1 parent 2ae000e commit 0f9e5e4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion content/browser.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,9 @@ GM_BrowserUI.init = function() {

GM_BrowserUI.progressListener = {
onLocationChange:function(aBrowser, aProgress, aRequest, aURI) {
if (aProgress.loadType & aProgress.LOAD_CMD_NORMAL) {
if (aProgress.loadType & aProgress.LOAD_CMD_NORMAL
|| aProgress.loadType & aProgress.LOAD_CMD_RELOAD
) {
GM_BrowserUI.gmSvc.runScripts(
'document-start', aProgress.DOMWindow, window);
}
Expand Down

0 comments on commit 0f9e5e4

Please sign in to comment.