Migration general theme: fix video player method in javascript

This commit is contained in:
Jesús 2020-12-16 10:31:36 -05:00
parent cfd9e977a7
commit b53fd2c004
No known key found for this signature in database
GPG Key ID: F6EE7BC59A315766

View File

@ -49,7 +49,7 @@ def timestamp_replacement(match):
for part in match.group(0).split(':'):
time_seconds = 60*time_seconds + int(part)
return (
'<a href="#" onclick="document.querySelector(\'video\').currentTime='
'<a href="#" onclick="document.getElementById(\'js-video-player\').currentTime='
+ str(time_seconds)
+ '">' + match.group(0)
+ '</a>'