mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
Less horrible charListGrid load
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user