From 1e60b9a3224c5b9b5d5f1a48af5abc839fd5c1b9 Mon Sep 17 00:00:00 2001 From: meow Date: Wed, 20 Apr 2022 14:56:00 +0300 Subject: [PATCH] destructing binding is not supported by IE11 --- assets/js/player.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/assets/js/player.js b/assets/js/player.js index 7f0f8c7a..4a12e95c 100644 --- a/assets/js/player.js +++ b/assets/js/player.js @@ -394,7 +394,9 @@ if (!video_data.params.listen && video_data.params.annotations) { }; window.addEventListener('__ar_annotation_click', function (e) { - const { url, target, seconds } = e.detail; + const url = e.detail.url, + target = e.detail.target, + seconds = e.detail.seconds; var path = new URL(url); if (path.href.startsWith('https://www.youtube.com/watch?') && seconds) {