Init sound with keypress
This commit is contained in:
1 parent
3354f25582
commit
512b256e2e
1 file changed
+2
-2
@@ -15,7 +15,7 @@ function clickInit() {
|
||||
const osc = createOsc();
|
||||
osc.start();
|
||||
osc.stop();
|
||||
document.removeEventListener('click', clickInit);
|
||||
document.removeEventListener('keydown', clickInit);
|
||||
}
|
||||
|
||||
document.addEventListener('click', clickInit);
|
||||
document.addEventListener('keydown', clickInit);
|
||||
Reference in new issue
Block a user