Is there a way for a web extension add-on to listen for address fields changes when message is being edited? I need to listen for "to" address being added or changed.
Tried browser.compose.onComposeStateChanged
- it get fired (sporadically) when address editing is started/in progress, but not when the editing is actually done.is
The API is not guaranteed to fire after a user finishes editing the address field.
You could try
setTimeout
to poll for changes at regular intervals.You can add this inside the onModify, onRemove, onAdd listeners depending on your needs.