-
Notifications
You must be signed in to change notification settings - Fork 323
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Tweak the injection logic to work around bugs.
1) Attach event listener to content windows (not appcontent element), so location.replace('#anything') works. 2) Also attach a load (as well as DOMContentLoaded) listener, for non-DOM loads like images. Fixes #1584 Refs #1675
- Loading branch information
Showing
2 changed files
with
34 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
I don't think this works as intended, since
arguments.callee
is basicallythis.contentLoad
, whereas the actual listener is the function returned byGM_util.hitch
. But of course, I might be missing something.