This commit is contained in:
Timothy J. Baek
2024-09-21 04:24:38 +02:00
parent 16a767e04e
commit 426de76690
2 changed files with 12 additions and 4 deletions

View File

@@ -287,10 +287,14 @@
showControls.subscribe(async (value) => {
if (controlPane && !$mobile) {
if (value) {
controlPane.resize(parseInt(localStorage.getItem('chat-controls-size') || '35'));
} else {
controlPane.resize(0);
try {
if (value) {
controlPane.resize(parseInt(localStorage.getItem('chat-controls-size') || '35'));
} else {
controlPane.resize(0);
}
} catch (e) {
// ignore
}
}