From 75848ad4ebb3cbc51c7f1e18f2c2a8838a759730 Mon Sep 17 00:00:00 2001 From: Kevin Gibbons Date: Sat, 4 Nov 2023 21:39:03 -0700 Subject: [PATCH] fix infinite buttons --- extension/script.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/extension/script.js b/extension/script.js index 484d378..eb48335 100644 --- a/extension/script.js +++ b/extension/script.js @@ -126,8 +126,8 @@ function ensureTALinks() { let channelContainerNodes = getChannelContainers(); for (let channelContainer of channelContainerNodes) { - if (channelContainer.hasTA) continue; channelContainer = adjustOwner(channelContainer); + if (channelContainer.hasTA) continue; let channelButton = buildChannelButton(channelContainer); channelContainer.appendChild(channelButton); channelContainer.hasTA = true; @@ -145,7 +145,6 @@ function ensureTALinks() { } ensureTALinks = throttled(ensureTALinks, 700); -// fix positioning of #owner div to fit new button function adjustOwner(channelContainer) { return channelContainer.querySelector('#buttons') || channelContainer; }