From: TheSaminator Date: Mon, 14 Feb 2022 00:35:20 +0000 (-0500) Subject: Fix style X-Git-Url: https://gitweb.starshipfights.net/?a=commitdiff_plain;h=14666d744f98fd1000db5172e33c075c1f11e5a0;p=starship-fights Fix style --- diff --git a/src/jsMain/kotlin/starshipfights/game/client.kt b/src/jsMain/kotlin/starshipfights/game/client.kt index f949f37..d5592b2 100644 --- a/src/jsMain/kotlin/starshipfights/game/client.kt +++ b/src/jsMain/kotlin/starshipfights/game/client.kt @@ -37,7 +37,7 @@ fun main() { RenderResources.load(clientMode !is ClientMode.InGame) }.display() - window.addEventListener("beforeunload", {e -> + window.addEventListener("beforeunload", { e -> e.preventDefault() e.asDynamic().returnValue = "" })