aboutsummaryrefslogtreecommitdiff
path: root/public
diff options
context:
space:
mode:
authorJoris2024-01-04 21:14:27 +0100
committerJoris2024-01-04 21:14:27 +0100
commit8b5a1f5b754d51147236c7a50e573d4b041497ee (patch)
treeaf5d6e6cf816535248707731ca779f746e3bfe48 /public
parent2e6f266948bda4d4b08c9b88e14eeaeb284f137a (diff)
Fix chord shifting with rhythms
Diffstat (limited to 'public')
-rw-r--r--public/main.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/public/main.js b/public/main.js
index 3b9e6fc..db9a9f9 100644
--- a/public/main.js
+++ b/public/main.js
@@ -56,7 +56,7 @@ if (node !== null) {
const shift = getShift(tonality, e.target.value)
tonality = e.target.value
tonalities = tonality === 'F' || tonality.indexOf('♭') > -1 ? tonalities_b : tonalities_s
- document.querySelectorAll('.g-Chords__Chord').forEach(chord => {
+ document.querySelectorAll('.g-Chords__Name').forEach(chord => {
if (chord.innerText !== '%') {
chord.innerText = applyShift(tonalities, chord.innerText, shift)
}