eyalroz / bidimailui

BiDi Mail UI: Thunderbird extension for improved right-to-left language support
https://addons.thunderbird.net/en-US/thunderbird/addon/bidi-mail-ui/
Other
19 stars 2 forks source link

Can't add "load" event listener like we used to #91

Closed eyalroz closed 1 year ago

eyalroz commented 1 year ago

We are used to adding an event listener for message load events to the "messagepane" DOM element, like so:

document.getElementById("messagepane").addEventListener("load", BiDiMailUI.MessageOverlay.onLoad, true);

... but this no longer works in TB 115. In fact, we can't even obtain the "messagepane" element. After asking around and not getting proper answers, it seems that this kind of works:

window.addEventListener("MsgLoaded", BiDiMailUI.MessageOverlay.onLoad, true);

with the window being the one defined when the chrome injector script runs.