mirror of
https://github.com/vector-im/element-call.git
synced 2026-04-15 07:50:26 +00:00
Preload reaction sounds to prevent delays.
This commit is contained in:
@@ -12,7 +12,10 @@ import { useObservableEagerState } from "observable-hooks";
|
||||
import { PosthogAnalytics } from "../analytics/PosthogAnalytics";
|
||||
|
||||
export class Setting<T> {
|
||||
public constructor(key: string, defaultValue: T) {
|
||||
public constructor(
|
||||
key: string,
|
||||
public readonly defaultValue: T,
|
||||
) {
|
||||
this.key = `matrix-setting-${key}`;
|
||||
|
||||
const storedValue = localStorage.getItem(this.key);
|
||||
|
||||
Reference in New Issue
Block a user