MCPcopy Create free account
hub / github.com/MiniMax-AI/OpenRoom / loadImageGenConfigSync

Function loadImageGenConfigSync

apps/webuiapps/src/lib/imageGenClient.ts:66–73  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

64
65/** Synchronous read from localStorage cache. */
66export function loadImageGenConfigSync(): ImageGenConfig | null {
67 try {
68 const raw = localStorage.getItem(CONFIG_KEY);
69 return raw ? JSON.parse(raw) : null;
70 } catch {
71 return null;
72 }
73}
74
75export function saveImageGenConfig(config: ImageGenConfig): void {
76 localStorage.setItem(CONFIG_KEY, JSON.stringify(config));

Callers 2

loadImageGenConfigFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected