[all] refactoring

This commit is contained in:
maxkadushkin
2024-09-18 17:11:48 +03:00
parent 0245e2a188
commit 4b2989e4e2

View File

@ -118,10 +118,7 @@
colors.push('--' + c + ':' + objtheme.colors[c]);
}
var style = document.createElement('style');
style.type = 'text/css';
style.innerHTML = '.' + objtheme.id + '{' + colors.join(';') + ';}';
document.getElementsByTagName('head')[0].appendChild(style);
inject_style_tag('.' + objtheme.id + '{' + colors.join(';') + ';}');
}
}
}