mirror of
				https://gitlab.com/animath/si/plateforme.git
				synced 2025-11-04 09:02:11 +01:00 
			
		
		
		
	Fix draw issues with translated strings
This commit is contained in:
		@@ -221,9 +221,10 @@ document.addEventListener('DOMContentLoaded', () => {
 | 
			
		||||
            elem.innerText = `${trigram} 🎲 ${result}`
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
        let nextTeam = document.querySelector(` div[id="dices-${tid}"] > div > div[class*="text-bg-warning"]`).getAttribute("data-team")
 | 
			
		||||
        if (nextTeam) {
 | 
			
		||||
        let nextTeamDiv = document.querySelector(` div[id="dices-${tid}"] > div > div[class*="text-bg-warning"]`)
 | 
			
		||||
        if (nextTeamDiv) {
 | 
			
		||||
            // If there is one team that does not have launched its dice, then we update the debug section
 | 
			
		||||
            let nextTeam = nextTeamDiv.getAttribute("data-team")
 | 
			
		||||
            let debugSpan = document.getElementById(`debug-dice-${tid}-team`)
 | 
			
		||||
            if (debugSpan)
 | 
			
		||||
                debugSpan.innerText = nextTeam
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user