From c921344b04c5e8e61d21585dac856d14b7363291 Mon Sep 17 00:00:00 2001 From: Manolis Papadeas <35376950+OverloadedOrama@users.noreply.github.com> Date: Mon, 22 Nov 2021 21:38:17 +0200 Subject: [PATCH] Fix splash screen not appearing in the Web version --- src/Main.gd | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Main.gd b/src/Main.gd index 7efcbb57a..f9ff56fd9 100644 --- a/src/Main.gd +++ b/src/Main.gd @@ -249,7 +249,7 @@ func show_splash_screen() -> void: Global.config_cache.set_value("preferences", "startup", true) if Global.config_cache.get_value("preferences", "startup"): - if OS.window_size != Vector2(1280, 720): + if OS.get_name() != "HTML5" and OS.window_size != Vector2(1280, 720): # Wait for the window to adjust itself, so the popup is correctly centered yield(get_tree(), "screen_resized")