mirror of
https://gitea.invidious.io/iv-org/invidious.git
synced 2024-08-15 00:53:41 +00:00
destructing binding is not supported by IE11
This commit is contained in:
parent
7450cb1f21
commit
1e60b9a322
1 changed files with 3 additions and 1 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue