prettier
All checks were successful
Build / build (pull_request) Successful in 1m18s

This commit is contained in:
Sainan 2025-09-08 06:23:21 +02:00
parent 22a9cd2436
commit 1e2341af88

View File

@ -93,7 +93,9 @@ function openWebSocket() {
if ("have_game_ws" in msg) {
window.have_game_ws = msg.have_game_ws;
if (window.dict) {
$(".inventory-update-note").text(loc(msg.have_game_ws ? "general_inventoryUpdateNoteGameWs" : "general_inventoryUpdateNote"));
$(".inventory-update-note").text(
loc(msg.have_game_ws ? "general_inventoryUpdateNoteGameWs" : "general_inventoryUpdateNote")
);
}
}
};
@ -229,7 +231,9 @@ function updateLocElements() {
document.querySelectorAll("[data-loc-replace]").forEach(elm => {
elm.innerHTML = elm.innerHTML.replace("|VAL|", elm.getAttribute("data-loc-replace"));
});
$(".inventory-update-note").text(loc(window.have_game_ws ? "general_inventoryUpdateNoteGameWs" : "general_inventoryUpdateNote"));
$(".inventory-update-note").text(
loc(window.have_game_ws ? "general_inventoryUpdateNoteGameWs" : "general_inventoryUpdateNote")
);
}
function setActiveLanguage(lang) {