added type and mime classes on body as well #383

This commit is contained in:
zadam
2019-01-28 21:42:37 +01:00
parent 90895f1288
commit 707df18b93
6 changed files with 43 additions and 27 deletions

View File

@@ -87,7 +87,7 @@ addTabHandler((function() {
$themeSelect.change(function() {
const newTheme = $(this).val();
for (const clazz of $body[0].classList) {
for (const clazz of Array.from($body[0].classList)) { // create copy to safely iterate over while removing classes
if (clazz.startsWith("theme-")) {
$body.removeClass(clazz);
}