Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function checkBoom() {
- if (timeSet < current) {
- clearInterval(intervalId);
- boom();
- intervalId = null;
- }
- }
- if (intervalId) {
- clearInterval(intervalId);
- }
- intervalId = setInterval(checkBoom, 1000);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement