Untitled
unknown
plain_text
19 days ago
622 B
4
Indexable
Never
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 }
Leave a Comment