remove font setting and default to Open Sans (#6643)
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
c2cef78f04
Коммит
6b77a054c2
@@ -732,22 +732,6 @@ export function resetTheme() {
|
||||
applyTheme(Constants.THEMES.default);
|
||||
}
|
||||
|
||||
export function applyFont(fontName) {
|
||||
const body = $('body');
|
||||
|
||||
for (const key of Reflect.ownKeys(Constants.FONTS)) {
|
||||
const className = Constants.FONTS[key];
|
||||
|
||||
if (fontName === key) {
|
||||
if (!body.hasClass(className)) {
|
||||
body.addClass(className);
|
||||
}
|
||||
} else {
|
||||
body.removeClass(className);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
export function changeCss(className, classValue) {
|
||||
let styleEl = document.querySelector('style[data-class="' + className + '"]');
|
||||
if (!styleEl) {
|
||||
|
||||
Ссылка в новой задаче
Block a user