Last active
June 28, 2021 19:00
-
-
Save narennaik/e75f6d01152e5efc1f46bc83f8e3ee4d to your computer and use it in GitHub Desktop.
Incomplete comments
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Construct URL list | |
// Adding https protocol since the backend service doesn't accept http | |
// TODO: (temporary) Adding callback=true because server side redirection needs this parameter | |
const urlList = domainList.map((item) => { | |
const domain = item.details.name; | |
let url; | |
if (item.details.valid) { | |
url = `https://${domain}?callback=true`; | |
} else { | |
url = `http://${domain}?callback=true`; | |
} | |
return url; | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment