From 14666d744f98fd1000db5172e33c075c1f11e5a0 Mon Sep 17 00:00:00 2001 From: TheSaminator Date: Sun, 13 Feb 2022 19:35:20 -0500 Subject: [PATCH] Fix style --- src/jsMain/kotlin/starshipfights/game/client.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 = "" }) -- 2.25.1