From 5ced094217403b175939f1f7ea7d8926893881f2 Mon Sep 17 00:00:00 2001 From: Klemek Date: Fri, 18 Oct 2024 19:06:23 +0200 Subject: [PATCH] do not use initial audio context --- main.js | 5 ----- 1 file changed, 5 deletions(-) diff --git a/main.js b/main.js index 81749c5..8af4c49 100644 --- a/main.js +++ b/main.js @@ -136,11 +136,6 @@ let app = { }, start() { if (!this.started) { - const audioCtx = new AudioContext(); - this.sounds.forEach(sound => { - const source = audioCtx.createMediaElementSource(sound.audio); - source.connect(audioCtx.destination); - }); this.trigger(); if (this.hidePrank) { this.hideApp();