mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
Clear media alerts from storage on character deletion
This commit is contained in:
@ -105,6 +105,10 @@ class AccountStorage {
|
||||
console.warn(`AccountStorage not ready (trying to remove ${key})`);
|
||||
}
|
||||
|
||||
if (!Object.hasOwn(this.state, key)) {
|
||||
return;
|
||||
}
|
||||
|
||||
delete this.state[key];
|
||||
saveSettingsDebounced();
|
||||
}
|
||||
|
Reference in New Issue
Block a user