Skip to content

Instantly share code, notes, and snippets.

@GitHub30
Created May 2, 2018 20:53
Show Gist options
  • Save GitHub30/4d7a3d32dab2cd938e143a1d9ca011c1 to your computer and use it in GitHub Desktop.
Save GitHub30/4d7a3d32dab2cd938e143a1d9ca011c1 to your computer and use it in GitHub Desktop.
async function checkAppDomain(subdomain='subdomain'){
const res = await fetch('https://domain-registry.appspot.com/check?domain=' + subdomain + '.app').then(r => r.json());
console.info(subdomain, res);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment