Skip to content

Commit

Permalink
fixed bug where multiple stylesheets was loaded on login page
Browse files Browse the repository at this point in the history
  • Loading branch information
on committed Oct 3, 2025
1 parent 0386188 commit b6f5895
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions modern-bas.user.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,14 +39,15 @@

function applyModernStyle() {
if (!modernStyleElement) {
const cssContent = GM_getResourceText('modernCSS');
modernStyleElement = GM_addStyle(cssContent);
console.log('✅ Modern BAS CSS applied');

if (document.getElementById('login')) {
const loginCssContent = GM_getResourceText('modernLoginCSS');
GM_addStyle(loginCssContent);
console.log('✅ Modern BAS Login CSS applied');
} else {
const cssContent = GM_getResourceText('modernCSS');
modernStyleElement = GM_addStyle(cssContent);
console.log('✅ Modern BAS CSS applied');
}
}

Expand Down

0 comments on commit b6f5895

Please sign in to comment.