Skip to content

Commit

Permalink
fix(style): ensure widgetbot doesn't add padding below footers (#44)
Browse files Browse the repository at this point in the history
  • Loading branch information
ReenigneArcher authored Sep 21, 2024
1 parent d87beb8 commit bf79545
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/js/discord.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,15 @@ function initDiscord() {
defer: false,
});

// Apply CSS position change directly in JavaScript
const style = document.createElement('style');
style.innerHTML = `
widgetbot-crate {
position: fixed !important;
}
`;
document.head.appendChild(style);

// get random video game quotes and notify the user on Widgetbot after 7 minutes
fetchRandomQuote().then(quote => {
setTimeout(() => {
Expand Down

0 comments on commit bf79545

Please sign in to comment.