From d5bee400a961c5777648dd2b3b47316e5331d484 Mon Sep 17 00:00:00 2001 From: Rodrigo Pombo Date: Thu, 28 Feb 2019 23:17:04 -0300 Subject: [PATCH] Accept source as url param --- src/git-providers/sources.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/git-providers/sources.js b/src/git-providers/sources.js index 81aa0b9..76fa372 100644 --- a/src/git-providers/sources.js +++ b/src/git-providers/sources.js @@ -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; }