aboutsummaryrefslogtreecommitdiff
path: root/client
diff options
context:
space:
mode:
authormetamuffin <metamuffin@disroot.org>2024-08-22 00:11:24 +0200
committermetamuffin <metamuffin@disroot.org>2024-08-22 00:11:24 +0200
commit19092a74545351c1ba724a38ec49fb74007f507c (patch)
tree7c3537b656c3ddcfd288fd18ddd95ba75a206392 /client
parent1b22f7b3cfcb02a9779f32c2132002208547407f (diff)
downloadhurrycurry-19092a74545351c1ba724a38ec49fb74007f507c.tar
hurrycurry-19092a74545351c1ba724a38ec49fb74007f507c.tar.bz2
hurrycurry-19092a74545351c1ba724a38ec49fb74007f507c.tar.zst
fix quick connect on web
Diffstat (limited to 'client')
-rw-r--r--client/menu/play.gd4
1 files changed, 2 insertions, 2 deletions
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)")