We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7b1b5a8 commit b6a2b77Copy full SHA for b6a2b77
src/Home.js
@@ -6,13 +6,13 @@ import gitlabLogo from './assets/images/gitlab.svg'
6
import trelloLogo from './assets/images/trello.svg'
7
import './Home.css'
8
9
-const base = window.location.href + 'callback'
+const callbackUrl = (setupable) => `${window.location.href}${setupable}/callback`
10
const SETUPABLE = [
11
{
12
name: "GitHub",
13
logo: githubLogo,
14
enabled: true,
15
- url: 'https://github.com/login/oauth/authorize?client_id=0e8a63320fba47de145c&scope=repos&redirect_uri=' + base + '/github',
+ url: 'https://github.com/login/oauth/authorize?client_id=0e8a63320fba47de145c&scope=repos&redirect_uri=' + callbackUrl('github'),
16
},
17
18
name: "GitLab",
0 commit comments