Skip to content

Commit

Permalink
chore: revert changes
Browse files Browse the repository at this point in the history
  • Loading branch information
arnoson committed Dec 12, 2022
1 parent 55b0dbe commit bde5e65
Showing 1 changed file with 12 additions and 14 deletions.
26 changes: 12 additions & 14 deletions src/gui.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,13 @@ let isSetup = false
let isEnabled = false

const setup = () => {
document.addEventListener('DOMContentLoaded', () => {
const style = document.createElement('style')
style.innerText = css
document.head.append(style)

gui = document.createElement('div')
gui.classList.add('hydra-midi-gui')
gui.innerHTML = `
const style = document.createElement('style')
style.innerText = css
document.head.append(style)

gui = document.createElement('div')
gui.classList.add('hydra-midi-gui')
gui.innerHTML = `
<div class="hydra-midi-inputs"></div>
<span>⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯</span>
<div class="hydra-midi-heading">Ch Type Values</div>
Expand All @@ -31,13 +30,12 @@ const setup = () => {
.join('')}</div>
`

document.body.append(gui)
inputs = gui.querySelector('.hydra-midi-inputs')
messages = gui.querySelector('.hydra-midi-messages')
document.body.append(gui)
inputs = gui.querySelector('.hydra-midi-inputs')
messages = gui.querySelector('.hydra-midi-messages')

isSetup = true
isEnabled = true
})
isSetup = true
isEnabled = true
}

/**
Expand Down

0 comments on commit bde5e65

Please sign in to comment.