mirror of
https://github.com/openfrontio/OpenFrontIO.git
synced 2026-06-24 00:03:40 +00:00
fix(client): use the right language-modal selector (#1136)
## Description: Use the proper language-modal selector tag in initialize for the language modal. fixes https://github.com/openfrontio/OpenFrontIO/issues/865 ## 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 understand that submitting code with bugs that could have been caught through manual testing blocks releases and new features for all contributors ## Please put your Discord username so you can be contacted if a bug or regression is found: ghisloufou
This commit is contained in:
+3
-3
@@ -90,13 +90,13 @@ class Client {
|
||||
const langSelector = document.querySelector(
|
||||
"lang-selector",
|
||||
) as LangSelector;
|
||||
const LanguageModal = document.querySelector(
|
||||
"lang-selector",
|
||||
const languageModal = document.querySelector(
|
||||
"language-modal",
|
||||
) as LanguageModal;
|
||||
if (!langSelector) {
|
||||
console.warn("Lang selector element not found");
|
||||
}
|
||||
if (!LanguageModal) {
|
||||
if (!languageModal) {
|
||||
console.warn("Language modal element not found");
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user