Update manic-monday.js

master
John Behan 2019-11-12 07:22:13 +00:00 committed by GitHub
parent 041cd27b20
commit b640ee18d9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 1 deletions

View File

@ -38,4 +38,9 @@ function step() {
var tune = "aggffefed"; var tune = "aggffefed";
var pos = 0; var pos = 0;
setInterval(step, 500); setWatch(() => {
var playing = setInterval(step, 500);
if(playing === 0) clearInterval(playing);
}, BTN1);
E.showMessage('BTN1 to start', 'Manic Monday');