MCPcopy Create free account
hub / github.com/crisxuan/bestJavaer / getSiteRootPath

Function getSiteRootPath

assets/article-cards.js:1058–1062  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1056 }
1057
1058 function getSiteRootPath() {
1059 var path = window.location.pathname;
1060
1061 return path.charAt(path.length - 1) === '/' ? path : path.replace(/[^/]*$/, '');
1062 }
1063
1064 function createGeneratedCover(title, caption) {
1065 var safeTitle = escapeXml(title || 'AI Article');

Callers 2

resolveImageSourceFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected