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
patrickdelconte
03/04/2020, 3:13 PM
The api for addEventListener is untyped, there is an issue in the tracker IRC
d
dazza5000
03/04/2020, 4:43 PM
I did in the example code that I posted, but haven't been able to get the project to build to test it yet
dazza5000
03/04/2020, 4:44 PM
Still struggling on how to convert an android project to kotlin mp so I can add the javascript support - thank you for the tip!