From 0b4f9b035fcf204b8ce65076b84f55e297fa909b Mon Sep 17 00:00:00 2001 From: Grant Shangreaux Date: Tue, 29 Dec 2020 12:32:35 -0600 Subject: Fix: attempt fat arrow binding for callback time --- templates/page.tmpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'templates') 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) }; } } -- cgit v1.2.3