This looks like it works: ``` fun main(args: Arra...
# javascript
a
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.