Gets match configuration from storage.
The saved match configuration or default config if not found.
const config = getMatchConfig(); Copy
const config = getMatchConfig();
export function getMatchConfig(): MatchConfig { try { const config = storage.getItem(STORAGE_KEYS.MATCH_CONFIG); return config ? JSON.parse(config) : DEFAULT_MATCH_CONFIG; } catch (error) { console.error("Error retrieving match config from storage", error); return DEFAULT_MATCH_CONFIG; }} Copy
export function getMatchConfig(): MatchConfig { try { const config = storage.getItem(STORAGE_KEYS.MATCH_CONFIG); return config ? JSON.parse(config) : DEFAULT_MATCH_CONFIG; } catch (error) { console.error("Error retrieving match config from storage", error); return DEFAULT_MATCH_CONFIG; }}
Gets match configuration from storage.