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