diff options
Diffstat (limited to 'src/view/play.ts')
-rw-r--r-- | src/view/play.ts | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/view/play.ts b/src/view/play.ts index 20da6c7..f0340f7 100644 --- a/src/view/play.ts +++ b/src/view/play.ts @@ -39,8 +39,11 @@ function shiftChords(chords: Element, options: Options) { } function chordNode(options?: Options): Element { + let [base, alteration] = options ? chord.generate(options) : ['', ''] + return h('div', { className: 'g-Chord' }, - options ? chord.generate(options) : '' + base, + h('sup', {}, alteration) ) } |