You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
My static analysis tooling expects all access to global functions via window. I can fix that but it would be a hack on my side.
Having to inject only window as a global when executing this in a different context than browser makes things a lot cleaner than having to inject all the window globals in the to VM container as well.
Also, when looking at the code and you see just addEventListener you don't know what object you are registering events on so you have to see if addEventListener is declared elsewhere in the file before knowing its the window one.
Having
addEventListener
dangle as a global is not ideal.Please use
window.addEventListener
to provide more context to static analysis tooling.The text was updated successfully, but these errors were encountered: