MCPcopy Index your code
hub / github.com/refined-github/refined-github / getApiUrl

Function getApiUrl

source/options/token-validation.tsx:35–40  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

33}
34
35function getApiUrl(): string {
36 const tokenLink = $('a#personal-token-link');
37 return tokenLink.host === 'github.com'
38 ? 'https://api.github.com/'
39 : `${tokenLink.origin}/api/v3/`;
40}
41
42function expandTokenSection(): void {
43 $('details#token').open = true;

Callers 1

validateTokenFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected