mirror of
https://gitea.invidious.io/iv-org/invidious
synced 2025-06-05 23:29:12 +02:00
destructing binding is not supported by IE11
This commit is contained in:
@ -394,7 +394,9 @@ if (!video_data.params.listen && video_data.params.annotations) {
|
|||||||
};
|
};
|
||||||
|
|
||||||
window.addEventListener('__ar_annotation_click', function (e) {
|
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);
|
var path = new URL(url);
|
||||||
|
|
||||||
if (path.href.startsWith('https://www.youtube.com/watch?') && seconds) {
|
if (path.href.startsWith('https://www.youtube.com/watch?') && seconds) {
|
||||||
|
Reference in New Issue
Block a user