Any idea on how to do this in Kotlin JS? <https://...
# javascript
d
p
Without understanding the question. Have you tried casting the listener’s event to the eventtype you expect? I frequently had to when I wrote a browser extension
The api for addEventListener is untyped, there is an issue in the tracker IRC
d
I did in the example code that I posted, but haven't been able to get the project to build to test it yet
Still struggling on how to convert an android project to kotlin mp so I can add the javascript support - thank you for the tip!