fix(adblocker): fix blank screen

- fix #1942
- fix #2100
- fix #2103
This commit is contained in:
JellyBrick
2024-06-01 04:34:21 +09:00
parent b572623442
commit cd4f0ccad7
3 changed files with 12 additions and 10 deletions

View File

@ -225,7 +225,9 @@ const preload = async () => {
t: i18t.bind(i18next),
};
defineYTMDTransElements();
document.body.dataset.os = navigator.userAgent;
if (document.body?.dataset?.os) {
document.body.dataset.os = navigator.userAgent;
}
};
const main = async () => {