MCPcopy Create free account
hub / github.com/error311/FileRise / normalizeLogoPath

Function normalizeLogoPath

public/js/adminPanel.js:386–393  ·  view source on GitHub ↗
(raw)

Source from the content-addressed store, hash-verified

384}
385
386function normalizeLogoPath(raw) {
387 if (!raw) return '';
388 const parts = String(raw).split(':');
389 let pic = parts[parts.length - 1];
390 pic = pic.replace(/^:+/, '');
391 if (pic && !pic.startsWith('/')) pic = '/' + pic;
392 return pic;
393}
394
395function getAdminTitle(
396 isPro,

Callers 1

openAdminPanelFunction · 0.85

Calls 1

splitMethod · 0.80

Tested by

no test coverage detected