Skip to content

Instantly share code, notes, and snippets.

@narennaik
Last active June 28, 2021 19:00
Show Gist options
  • Save narennaik/e75f6d01152e5efc1f46bc83f8e3ee4d to your computer and use it in GitHub Desktop.
Save narennaik/e75f6d01152e5efc1f46bc83f8e3ee4d to your computer and use it in GitHub Desktop.
Incomplete comments
// 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