mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-01-10 20:54:11 +01:00
Fix crappy add-on manager icons.
This commit is contained in:
@@ -460,9 +460,9 @@ var Overlay = Module("Overlay", XPCOM([Ci.nsIObserver, Ci.nsISupportsWeakReferen
|
||||
if (doc.readyState === "complete")
|
||||
load();
|
||||
else
|
||||
doc.addEventListener("load", util.wrapCallback(function onLoad(event) {
|
||||
if (event.originalTarget === event.target) {
|
||||
doc.removeEventListener("load", onLoad.wrapper, true);
|
||||
window.addEventListener("load", util.wrapCallback(function onLoad(event) {
|
||||
if (event.originalTarget === doc) {
|
||||
window.removeEventListener("load", onLoad.wrapper, true);
|
||||
load(event);
|
||||
}
|
||||
}), true);
|
||||
|
||||
Reference in New Issue
Block a user