MCPcopy Create free account
hub / github.com/ollm/OpenComic / loadLanguageMD

Function loadLanguageMD

scripts/opencomic.js:657–677  ·  view source on GitHub ↗
(hbc, obj)

Source from the content-addressed store, hash-verified

655}
656
657function loadLanguageMD(hbc, obj)
658{
659 for(let key in obj)
660 {
661 if(Array.isArray(obj[key]))
662 {
663 hbc[key] = obj[key];
664 }
665 else if(typeof obj[key] == 'object')
666 {
667 if(!hbc[key])
668 hbc[key] = {};
669
670 loadLanguageMD(hbc[key], obj[key]);
671 }
672 else if(obj[key])
673 {
674 hbc[key] = obj[key];
675 }
676 }
677}
678
679function time()
680{

Callers 1

loadLanguageFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected