JS: Replace '.setAttribute("href")' with '.href'
Co-authored-by: syeopite <70992037+syeopite@users.noreply.github.com>
This commit is contained in:
parent
06b2a4ba9d
commit
700c57559b
|
@ -127,8 +127,8 @@ player.on('timeupdate', function () {
|
|||
let base_url_yt_watch = elem_yt_watch.getAttribute('data-base-url');
|
||||
let base_url_yt_embed = elem_yt_embed.getAttribute('data-base-url');
|
||||
|
||||
elem_yt_watch.setAttribute('href') = addCurrentTimeToURL(base_url_yt_watch);
|
||||
elem_yt_embed.setAttribute('href') = addCurrentTimeToURL(base_url_yt_embed);
|
||||
elem_yt_watch.href = addCurrentTimeToURL(base_url_yt_watch);
|
||||
elem_yt_embed.href = addCurrentTimeToURL(base_url_yt_embed);
|
||||
|
||||
// Invidious links
|
||||
|
||||
|
@ -138,8 +138,8 @@ player.on('timeupdate', function () {
|
|||
let base_url_iv_embed = elem_iv_embed.getAttribute('data-base-url');
|
||||
let base_url_iv_other = elem_iv_other.getAttribute('data-base-url');
|
||||
|
||||
elem_iv_embed.setAttribute('href') = addCurrentTimeToURL(base_url_iv_embed);
|
||||
elem_iv_other.setAttribute('href') = addCurrentTimeToURL(base_url_iv_other);
|
||||
elem_iv_embed.href = addCurrentTimeToURL(base_url_iv_embed);
|
||||
elem_iv_other.href = addCurrentTimeToURL(base_url_iv_other);
|
||||
});
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue