Skip to content

Commit

Permalink
Merge pull request #67 from maartenhunink/patch-2
Browse files Browse the repository at this point in the history
Add 'active' class without replacing all existing classes.
  • Loading branch information
maboa authored Oct 7, 2021
2 parents 8deb4b8 + 0bdc51b commit 190afbe
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 @@ -264,7 +264,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 190afbe

Please sign in to comment.