Skip to content

Commit

Permalink
Inject styles to <head>, not <body>
Browse files Browse the repository at this point in the history
  • Loading branch information
theRealPadster committed Jan 31, 2023
1 parent f7094cb commit ebec72b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/app.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,8 @@ const injectCSS = () => {
`.hide-podcasts-enabled .queue-tabBar-header a[href="/collection/podcasts"] {
display: none !important;
}`;
body.appendChild(style);
style.className = 'hide-podcasts--style';
document.head.appendChild(style);
body.classList.add('hide-podcasts--style-injected');
}
};
Expand Down

0 comments on commit ebec72b

Please sign in to comment.