From 5fc20f9dd53fe4d32be08d538782baa47c67853c Mon Sep 17 00:00:00 2001 From: stonedDiscord Date: Wed, 20 Sep 2023 11:52:34 +0200 Subject: make eslint a lot happier --- webAO/components/audioChannels.js | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'webAO/components/audioChannels.js') diff --git a/webAO/components/audioChannels.js b/webAO/components/audioChannels.js index 1979653..80bdb4f 100644 --- a/webAO/components/audioChannels.js +++ b/webAO/components/audioChannels.js @@ -1,13 +1,13 @@ /** - * + * * @param {number} amountOfChannels Amount of Blips to put on page */ const createAudioChannels = (amountOfChannels) => { - for (let i = 0; i < amountOfChannels; i++) { - const audioChannel = document.createElement('audio') - audioChannel.setAttribute('class', 'audioChannel') - document.body.appendChild(audioChannel) - } -} -createAudioChannels(4) -export default createAudioChannels + for (let i = 0; i < amountOfChannels; i++) { + const audioChannel = document.createElement('audio'); + audioChannel.setAttribute('class', 'audioChannel'); + document.body.appendChild(audioChannel); + } +}; +createAudioChannels(4); +export default createAudioChannels; -- cgit