[mobile] debug

This commit is contained in:
Maxim Kadushkin 2021-11-02 18:10:10 +03:00
parent fbd70b7b7b
commit cb0547b09b

View file

@ -29,7 +29,7 @@ class ApplicationSettingsController extends Component {
LocalStorage.setItem("ui-theme", JSON.stringify(theme));
const $body = $$('body');
$body.attr('class', $body.attr('class').replace(/\s?theme-type-(?:dark|light)/, ''));
$body.attr('class') && $body.attr('class', $body.attr('class').replace(/\s?theme-type-(?:dark|light)/, ''));
$body.addClass(`theme-type-${theme.type}`);
}