mirror of https://bitbucket.org/ausocean/av.git
audio-player: formatting
This commit is contained in:
parent
dc72371e74
commit
1865ff9c79
|
@ -23,8 +23,10 @@ LICENSE
|
|||
*/
|
||||
|
||||
window.onload = function () {
|
||||
document.getElementById('input').addEventListener('change', processData)
|
||||
}
|
||||
|
||||
document.getElementById('input').addEventListener('change', function () {
|
||||
function processData() {
|
||||
const input = event.target.files[0]
|
||||
const reader = new FileReader()
|
||||
|
||||
|
@ -53,5 +55,4 @@ window.onload = function () {
|
|||
reader.onerror = error => reject(error)
|
||||
reader.readAsArrayBuffer(input)
|
||||
|
||||
})
|
||||
}
|
Loading…
Reference in New Issue