https://kotlinlang.org logo
a

apatrida

06/28/2018, 4:57 PM
This looks like it works:
Copy code
fun main(args: Array<String>) {
    val funProp: dynamic = window
    funProp.doBrowserActionMain = ::browserActionMain
}
set the auto-call for main and register each function on the window object dynamically and then call them.