Clear media alerts from storage on character deletion

This commit is contained in:
Cohee
2025-02-11 20:31:37 +02:00
parent d5bdf1cb90
commit ee101353d8
2 changed files with 10 additions and 0 deletions

View File

@ -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();
}