This commit is contained in:
		
							parent
							
								
									22a9cd2436
								
							
						
					
					
						commit
						1e2341af88
					
				@ -93,7 +93,9 @@ function openWebSocket() {
 | 
				
			|||||||
        if ("have_game_ws" in msg) {
 | 
					        if ("have_game_ws" in msg) {
 | 
				
			||||||
            window.have_game_ws = msg.have_game_ws;
 | 
					            window.have_game_ws = msg.have_game_ws;
 | 
				
			||||||
            if (window.dict) {
 | 
					            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 => {
 | 
					    document.querySelectorAll("[data-loc-replace]").forEach(elm => {
 | 
				
			||||||
        elm.innerHTML = elm.innerHTML.replace("|VAL|", elm.getAttribute("data-loc-replace"));
 | 
					        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) {
 | 
					function setActiveLanguage(lang) {
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user