Compare commits

...

2 Commits

Author SHA1 Message Date
Kevin Gibbons
188dba534c
Merge 75848ad4ebb3cbc51c7f1e18f2c2a8838a759730 into aaa04a43b5eaf14f8763390a2f6065c0ac87d8dc 2023-11-05 04:39:08 +00:00
Kevin Gibbons
75848ad4eb fix infinite buttons 2023-11-04 21:39:03 -07:00

View File

@ -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;
}