mirror of
https://github.com/vector-im/element-call.git
synced 2024-11-24 00:38:31 +08:00
Remove unused code
This commit is contained in:
parent
44935eeb40
commit
b3e725fcac
@ -40,11 +40,9 @@ export class Setting<T> {
|
||||
private readonly _value: BehaviorSubject<T>;
|
||||
public readonly value: Observable<T>;
|
||||
|
||||
public readonly setValue = (value: T, persist = true): void => {
|
||||
public readonly setValue = (value: T): void => {
|
||||
this._value.next(value);
|
||||
if (persist) {
|
||||
localStorage.setItem(this.key, JSON.stringify(value));
|
||||
}
|
||||
localStorage.setItem(this.key, JSON.stringify(value));
|
||||
};
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user