[ThemeSync] Don't use theme-dark, just body

This commit is contained in:
Ducko 2021-12-22 13:39:50 +00:00
parent e7e27f09eb
commit 4e4ab5cd47
2 changed files with 1 additions and 3 deletions

View file

@ -4,7 +4,7 @@ const update = async () => {
let cached = await DiscordNative.userDataCache.getCached() || {};
const value = `.theme-dark { ${vars.reduce((acc, x) => acc += `${x}: ${getVar(x)}; `, '')} }`;
const value = `body { ${vars.reduce((acc, x) => acc += `${x}: ${getVar(x)}; `, '')} }`;
const pastValue = cached['openasarSplashCSS'];
cached['openasarSplashCSS'] = value;

View file

@ -132,8 +132,6 @@
document.querySelector('#debug').textContent = DiscordSplash.getDebugInfo();
DiscordSplash.getCSS((css) => {
document.body.classList.add('theme-dark'); // Theme compat
const cssInject = document.createElement('style');
cssInject.appendChild(document.createTextNode(css));
document.body.appendChild(cssInject);