MCPcopy Create free account
hub / github.com/Roy3838/Observer / loadCustomServersFromStorage

Method loadCustomServersFromStorage

app/src/utils/ModelManager.ts:363–372  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

361 // ===========================================================================
362
363 private loadCustomServersFromStorage(): void {
364 try {
365 const stored = localStorage.getItem(CUSTOM_SERVERS_KEY);
366 if (stored) {
367 this.customServers = JSON.parse(stored);
368 }
369 } catch (error) {
370 console.error('Failed to load custom servers:', error);
371 }
372 }
373
374 private saveCustomServersToStorage(): void {
375 localStorage.setItem(CUSTOM_SERVERS_KEY, JSON.stringify(this.customServers));

Callers 1

constructorMethod · 0.95

Calls 1

errorMethod · 0.80

Tested by

no test coverage detected