Less horrible charListGrid load

This commit is contained in:
Cohee
2024-09-05 21:22:54 +03:00
parent 75c6bee350
commit 3e3597673b
2 changed files with 5 additions and 15 deletions

View File

@@ -8879,9 +8879,8 @@ const isPwaMode = window.navigator.standalone;
if (isPwaMode) { $('body').addClass('PWA'); }
function doCharListDisplaySwitch() {
console.debug('toggling body charListGrid state');
$('body').toggleClass('charListGrid');
power_user.charListGrid = $('body').hasClass('charListGrid') ? true : false;
power_user.charListGrid = !power_user.charListGrid;
document.body.classList.toggle('charListGrid', power_user.charListGrid);
saveSettingsDebounced();
}