Skip to content

Commit

Permalink
Accept source as url param
Browse files Browse the repository at this point in the history
  • Loading branch information
pomber committed Mar 1, 2019
1 parent 4ab4543 commit d5bee40
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/git-providers/sources.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,6 @@ export function getSource() {
if ([SOURCE.GITLAB, SOURCE.GITHUB, SOURCE.BITBUCKET].includes(cloud)) {
return cloud;
}
return SOURCE.BITBUCKET;
const source = new URLSearchParams(window.location.search).get("source");
return source || SOURCE.GITHUB;
}

0 comments on commit d5bee40

Please sign in to comment.