From f0b198b61277956fe93d8ee8c7ec5e4e917d9eb0 Mon Sep 17 00:00:00 2001 From: Trek H Date: Thu, 18 Jul 2019 16:12:31 +0930 Subject: [PATCH] audio-player: removed unused elements --- cmd/audio-player/index.html | 1 - cmd/audio-player/main.js | 4 ++-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/cmd/audio-player/index.html b/cmd/audio-player/index.html index 2b813ed4..3e03e55e 100644 --- a/cmd/audio-player/index.html +++ b/cmd/audio-player/index.html @@ -12,7 +12,6 @@
-
diff --git a/cmd/audio-player/main.js b/cmd/audio-player/main.js index 174b9059..45299078 100644 --- a/cmd/audio-player/main.js +++ b/cmd/audio-player/main.js @@ -6,9 +6,9 @@ function playFile() { const input = event.target.files[0] const reader = new FileReader() - reader.onload = event => playData(event.target.result) // desired file content + reader.onload = event => playData(event.target.result) reader.onerror = error => reject(error) - reader.readAsArrayBuffer(input) // you could also read images and other binaries + reader.readAsArrayBuffer(input) } function playData(array){