chore: prevent change Bilibili Evolved background color for the non-homepage

This commit is contained in:
Hakadao
2023-08-31 17:40:49 +08:00
parent a36a178985
commit 70bccad018

View File

@@ -128,9 +128,11 @@ onMounted(() => {
}, 1200)
})
// Force overwrite Bilibili Evolved body tag & html tag background color
document.body.style.setProperty('background-color', 'unset', 'important');
document.documentElement.style.setProperty('background-color', 'unset', 'important');
if (isBilibiliHomePage.value) {
// Force overwrite Bilibili Evolved body tag & html tag background color
document.body.style.setProperty('background-color', 'unset', 'important');
document.documentElement.style.setProperty('background-color', 'unset', 'important');
}
if (mainAppRef.value) {
mainAppRef.value.addEventListener('scroll', () => {