From 11e92246f20ba23679ef79c32aba6dd8a11e4c85 Mon Sep 17 00:00:00 2001 From: Aotumuri Date: Sun, 20 Jul 2025 10:27:52 +0900 Subject: [PATCH] Fix modal not closing when game starts (#1504) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ## Description: When a player joins a public game and opens a modal (such as the news modal) while waiting for the game to start, the modal is not dismissed when the game begins. This leaves the modal visible even after the match has started. スクリーンショット 2025-07-20 10 25 16 This PR fixes the bug described above. ## Please complete the following: - [x] I have added screenshots for all UI updates - [x] I process any text displayed to the user through translateText() and I've added it to the en.json file - [x] I have added relevant tests to the test directory - [x] I confirm I have thoroughly tested these changes and take full responsibility for any bugs introduced - [x] I have read and accepted the CLA aggreement (only required once). ## Please put your Discord username so you can be contacted if a bug or regression is found: aotumuri --- src/client/Main.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/client/Main.ts b/src/client/Main.ts index 196f3186f..239f6184d 100644 --- a/src/client/Main.ts +++ b/src/client/Main.ts @@ -447,6 +447,9 @@ class Client { "game-top-bar", "help-modal", "user-setting", + "territory-patterns-modal", + "language-modal", + "news-modal", ].forEach((tag) => { const modal = document.querySelector(tag) as HTMLElement & { close?: () => void;