summaryrefslogtreecommitdiffstats
path: root/main.mjs
diff options
context:
space:
mode:
authorBrian Cully <bjc@spork.org>2025-07-28 10:50:12 -0400
committerBrian Cully <bjc@spork.org>2025-07-28 10:50:12 -0400
commitba2a92120c56a5989f4f97b2d1450667ec16ad5e (patch)
treeaaee2bcc95187a42d0e7cd0921e22b3b5b05e2b7 /main.mjs
parent21664833f7ede94d812135e1b4ce88c241b5bf69 (diff)
downloadchords-ba2a92120c56a5989f4f97b2d1450667ec16ad5e.tar.gz
chords-ba2a92120c56a5989f4f97b2d1450667ec16ad5e.zip
make tests run button force refresh
works in ff at least, and that's what i use
Diffstat (limited to 'main.mjs')
-rw-r--r--main.mjs7
1 files changed, 7 insertions, 0 deletions
diff --git a/main.mjs b/main.mjs
index 9aa4dd2..452620d 100644
--- a/main.mjs
+++ b/main.mjs
@@ -73,6 +73,13 @@ function init() {
document.querySelectorAll(KeyPicker.name).forEach(kp => {
kp.addEventListener(kp.noteEnterEvent, noteEnter);
kp.addEventListener(kp.noteLeaveEvent, noteLeave);
+ });
+
+ document.querySelector('a.run').forEach(a => {
+ a.onclick = e => {
+ e.preventDefault();
+ location.reload(true);
+ }
})
}
document.addEventListener('DOMContentLoaded', init);