Untitled
unknown
plain_text
a year ago
622 B
13
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