MCPcopy
hub / github.com/darkreader/darkreader / getHelpURL

Function getHelpURL

src/utils/links.ts:35–42  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

33];
34
35export function getHelpURL(): string {
36 if (isEdge && isMobile) {
37 return `${HELP_URL}/mobile/`;
38 }
39 const locale = getUILanguage();
40 const matchLocale = helpLocales.find((hl) => hl === locale) || helpLocales.find((hl) => locale.startsWith(hl)) || 'en';
41 return `${HELP_URL}/${matchLocale}/`;
42}
43
44export function getBlogPostURL(postId: string): string {
45 return `${BLOG_URL}${postId}/`;

Callers 3

index.tsFile · 0.90
AboutTabFunction · 0.90
BodyFunction · 0.90

Calls 1

getUILanguageFunction · 0.90

Tested by

no test coverage detected