-
-
Save sharafian/f2f6958cb31f7bc63cdec5a2ca6c4ed2 to your computer and use it in GitHub Desktop.
Monetization Progress
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if (document.monetization) { | |
document.monetization.addEventListener('monetizationprogress', ev => { | |
globalGameState.cash += Number(ev.detail.amount) | |
}) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment