allow for custom notification sounds

This commit is contained in:
MathMan05 2025-01-27 14:07:40 -06:00
parent 1ca64b1d57
commit e791390e2d
5 changed files with 65 additions and 16 deletions

View file

@ -111,7 +111,12 @@ export class Specialuser {
return new Proxy(e, {
set: (target, p, newValue, receiver) => {
const bool = Reflect.set(target, p, newValue, receiver);
this.updateLocal();
try {
this.updateLocal();
} catch (_) {
Reflect.deleteProperty(target, p);
throw _;
}
return bool;
},
get: (target, p, receiver) => {