Skip to content

Commit

Permalink
Fix JS example warnings (Kotlin#1968)
Browse files Browse the repository at this point in the history
  • Loading branch information
turansky authored and recheej committed Dec 28, 2020
1 parent 9f174d9 commit 73ffa4c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions js/example-frontend-js/src/ExampleMain.kt
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import kotlin.browser.*
import kotlin.coroutines.*
import kotlin.math.*

fun main(args: Array<String>) {
fun main() {
println("Starting example application...")
document.addEventListener("DOMContentLoaded", {
Application().start()
Expand Down Expand Up @@ -89,7 +89,7 @@ class Application : CoroutineScope {
val speed = 0.3
val rs = 20.0
val turnAfter = 5000.0 // seconds
var maxX = sw - rs
val maxX = sw - rs
val maxY = sh - rs
animation("rect", rs) { rect ->
println("Started new 'rect' coroutine #$index")
Expand Down

0 comments on commit 73ffa4c

Please sign in to comment.