MCPcopy
hub / github.com/hundredrabbits/Left / parse

Function parse

desktop/sources/scripts/lib/theme.js:50–53  ·  view source on GitHub ↗
(any)

Source from the content-addressed store, hash-verified

48 }
49
50 function parse (any) {
51 if (any && any.background) { return any } else if (any && any.data) { return any.data } else if (any && isJson(any)) { return JSON.parse(any) } else if (any && isHtml(any)) { return extract(any) }
52 return null
53 }
54
55 // Drag
56

Callers 1

ThemeFunction · 0.85

Calls 3

isJsonFunction · 0.85
isHtmlFunction · 0.85
extractFunction · 0.85

Tested by

no test coverage detected