summaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
authorGrant Shangreaux <grant@unabridgedsoftware.com>2020-12-29 12:32:35 -0600
committerGrant Shangreaux <grant@unabridgedsoftware.com>2020-12-29 12:32:35 -0600
commit0b4f9b035fcf204b8ce65076b84f55e297fa909b (patch)
tree1b9b8f577160881cc6c2cb4a7a8f0dc6e0f91807 /templates
parent184bf700f10dc43068c4d8d8fddd9f0b9d10ffcf (diff)
downloademacsconf-wiki-0b4f9b035fcf204b8ce65076b84f55e297fa909b.tar.xz
emacsconf-wiki-0b4f9b035fcf204b8ce65076b84f55e297fa909b.zip
Fix: attempt fat arrow binding for callback time
Diffstat (limited to 'templates')
-rw-r--r--templates/page.tmpl2
1 files changed, 1 insertions, 1 deletions
diff --git a/templates/page.tmpl b/templates/page.tmpl
index ec95256d..f380dc8d 100644
--- a/templates/page.tmpl
+++ b/templates/page.tmpl
@@ -62,7 +62,7 @@
seconds = parseSeconds(timestamps[i].innerText);
console.log("seconds: ", seconds);
- timestamps[i].onclick = function () { seekToTime(seconds) };
+ timestamps[i].onclick = () => { seekToTime(seconds) };
}
}
</script>