MCPcopy
hub / github.com/jgraph/drawio-desktop / persistBlessedPaths

Function persistBlessedPaths

src/main/electron.js:237–254  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

235}
236
237function persistBlessedPaths()
238{
239 if (store == null) return;
240
241 try
242 {
243 let arr = Array.from(blessedPaths);
244
245 // Cap to keep the store bounded; newest insertions win.
246 if (arr.length > BLESSED_PATHS_MAX)
247 {
248 arr = arr.slice(arr.length - BLESSED_PATHS_MAX);
249 }
250
251 store.set(BLESSED_PATHS_KEY, arr);
252 }
253 catch (e) {}
254}
255
256function blessPath(p)
257{

Callers 1

blessPathFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected