mirror of
https://github.com/tubearchivist/browser-extension.git
synced 2024-12-25 03:10:12 +00:00
prevent double eventlistener
This commit is contained in:
parent
f3064f32b1
commit
c79c0cc408
@ -365,6 +365,7 @@ function getNearestLink(element) {
|
||||
}
|
||||
|
||||
function processTitle(titleContainer) {
|
||||
if (titleContainer.hasListener) return
|
||||
Object.assign(titleContainer.style, {
|
||||
display: 'flex',
|
||||
gap: '15px',
|
||||
@ -383,6 +384,7 @@ function processTitle(titleContainer) {
|
||||
if (!taButton) return;
|
||||
taButton.style.opacity = 0;
|
||||
});
|
||||
titleContainer.hasListener = true;
|
||||
}
|
||||
|
||||
function checkVideoExists(taButton) {
|
||||
|
Loading…
Reference in New Issue
Block a user