Untitled
Anonymous
plain_text
09/19/2024 8:01 AM
832 B
20
Indexable
export const closeModal = (configGame) => {
configGame.modal.showModal = false
setTimeout(() => {
// globalWin(configGame)
if (getUsersLocalStorage().bronzeCoins >= 3 || getUsersLocalStorage().silverCoins >= 3) {
openCoinChangerAuto(configGame)
} else if(getUsersLocalStorage().goldenCoins >= 1) { //LINEA NUEVA
window.location = `${localHost}/claim-rocket`; //LINEA NUEVA
} else {
configGame.modal.showMedals = false
nextLevel(configGame);
}
}, 300) // Delay closing modal to allow medals to fade out
}
Editor is loading...
Leave a Comment