Skip to content

Instantly share code, notes, and snippets.

@m242
Created May 3, 2016 16:29
Show Gist options
  • Save m242/e9eae0648a8dbc260fdd8754e9c07b05 to your computer and use it in GitHub Desktop.
Save m242/e9eae0648a8dbc260fdd8754e9c07b05 to your computer and use it in GitHub Desktop.
Language redirect
var language = (navigator.language || navigator.browserLanguage).toLowerCase();
if (language == "en-gb") {
window.location = "https://www.skechers.com/en-gb/";
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment