mirror of
https://github.com/tubearchivist/browser-extension.git
synced 2025-07-01 14:51:11 +00:00
Compare commits
1 Commits
188dba534c
...
7ac3aaf2b7
Author | SHA1 | Date | |
---|---|---|---|
|
7ac3aaf2b7 |
@ -126,8 +126,8 @@ function ensureTALinks() {
|
||||
let channelContainerNodes = getChannelContainers();
|
||||
|
||||
for (let channelContainer of channelContainerNodes) {
|
||||
channelContainer = adjustOwner(channelContainer);
|
||||
if (channelContainer.hasTA) continue;
|
||||
channelContainer = adjustOwner(channelContainer);
|
||||
let channelButton = buildChannelButton(channelContainer);
|
||||
channelContainer.appendChild(channelButton);
|
||||
channelContainer.hasTA = true;
|
||||
@ -145,6 +145,7 @@ function ensureTALinks() {
|
||||
}
|
||||
ensureTALinks = throttled(ensureTALinks, 700);
|
||||
|
||||
// fix positioning of #owner div to fit new button
|
||||
function adjustOwner(channelContainer) {
|
||||
return channelContainer.querySelector('#buttons') || channelContainer;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user