How to override the global listeners being pushed in batchJS from other plugins in Jira?

Apoorva Sharma April 10, 2023

Hi,

We have a custom plugin that is facing some delay due to script of other plugin being injected in the batchJS. Upon checking we have found that the issue is coming from the global listener being triggered from that piece of script.

We tried window.onclick = null but that did not seem to have any effect.

We couldn't use removeListener as we do not have the name of the handler which is triggering the global listener. 

Can anyone please suggest what can be done to remove the global listener or to restrict it from being triggered on our screen?

Any suggestions would be really helpful. 

 

1 answer

0 votes
Nic Brough -Adaptavist-
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
April 11, 2023

I'm afraid your only options are to code to work with the other app, or stop using it.

Suggest an answer

Log in or Sign up to answer