// Check is LOCAL
if (window.location.host.replace(/(localhost|127\.0\.0\.1)(:\d+)?/i, "") == '') {
// youtr code here
}
Last active
September 30, 2021 15:04
-
-
Save carlosleonam/5049aaba34a35d5ea404193424ae2577 to your computer and use it in GitHub Desktop.
Check if HOST is local (localhost) or remote (WEB)
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment