diff options
author | Grant Shangreaux <grant@unabridgedsoftware.com> | 2020-12-29 12:32:35 -0600 |
---|---|---|
committer | Grant Shangreaux <grant@unabridgedsoftware.com> | 2020-12-29 12:32:35 -0600 |
commit | 0b4f9b035fcf204b8ce65076b84f55e297fa909b (patch) | |
tree | 1b9b8f577160881cc6c2cb4a7a8f0dc6e0f91807 | |
parent | 184bf700f10dc43068c4d8d8fddd9f0b9d10ffcf (diff) | |
download | emacsconf-wiki-0b4f9b035fcf204b8ce65076b84f55e297fa909b.tar.xz emacsconf-wiki-0b4f9b035fcf204b8ce65076b84f55e297fa909b.zip |
Fix: attempt fat arrow binding for callback time
Diffstat (limited to '')
-rw-r--r-- | templates/page.tmpl | 2 |
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> |