Skip to content

Commit 1e60b9a

Browse files
author
meow
committed
destructing binding is not supported by IE11
1 parent 7450cb1 commit 1e60b9a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

assets/js/player.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -394,7 +394,9 @@ if (!video_data.params.listen && video_data.params.annotations) {
394394
};
395395

396396
window.addEventListener('__ar_annotation_click', function (e) {
397-
const { url, target, seconds } = e.detail;
397+
const url = e.detail.url,
398+
target = e.detail.target,
399+
seconds = e.detail.seconds;
398400
var path = new URL(url);
399401

400402
if (path.href.startsWith('https://www.youtube.com/watch?') && seconds) {

0 commit comments

Comments
 (0)