Skip to content

Commit

Permalink
Add 'active' class without replacing all existing classes.
Browse files Browse the repository at this point in the history
  • Loading branch information
maartenhunink authored Sep 7, 2021
1 parent ae25139 commit 0bdc51b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/hyperaudio-lite.js
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,7 @@ class HyperaudioLite {
e.classList.remove('active');
});

target.setAttribute('class', 'active');
target.classList.add('active');

const timeSecs = parseInt(target.getAttribute('data-m')) / 1000;

Expand Down

0 comments on commit 0bdc51b

Please sign in to comment.