From 19092a74545351c1ba724a38ec49fb74007f507c Mon Sep 17 00:00:00 2001 From: metamuffin Date: Thu, 22 Aug 2024 00:11:24 +0200 Subject: fix quick connect on web --- client/menu/play.gd | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'client/menu') diff --git a/client/menu/play.gd b/client/menu/play.gd index 61b777d1..ded22f9a 100644 --- a/client/menu/play.gd +++ b/client/menu/play.gd @@ -50,7 +50,7 @@ func _on_connect_pressed(): func _on_quick_connect_pressed(): - if OS.has_feature("JavaScript"): + if OS.has_feature("web"): connect_to(JavaScriptBridge.eval(""" window.location.protocol.endsWith("s:") ? `wss://${window.location.host}/` @@ -91,7 +91,7 @@ func _process(_delta): server_control.text = tr("Start Server") Server.State.FAILED: server_control.text = tr("Server (Failed)") - server_control.modulate = Color(1,0.4,0.5) + server_control.modulate = Color(1, 0.4, 0.5) server_control.tooltip_text = tr("The server crashed or exited in some way or another.\nGodot's APIs are so bad however, that we really can't know why that happend.\nYou should try starting the server from the command-line.") Server.State.UNAVAILABLE: server_control.text = tr("Server (Unavailable)") -- cgit v1.2.3-70-g09d2