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

main
Oj 2 years ago
parent e7e27f09eb
commit 4e4ab5cd47

@ -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;

@ -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);

Loading…
Cancel
Save