()
| 33 | } |
| 34 | |
| 35 | function 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 | |
| 42 | function expandTokenSection(): void { |
| 43 | $('details#token').open = true; |