Skip to content

Instantly share code, notes, and snippets.

@melodymorgan
Created June 25, 2013 04:56
Show Gist options
  • Save melodymorgan/5856027 to your computer and use it in GitHub Desktop.
Save melodymorgan/5856027 to your computer and use it in GitHub Desktop.
if( /web/i.test(DEVICE) === true && top != self){
var threshold = 768;
if (window.screen.width < threshold) {
top.location.replace("https://sytycd.fox.com/?app=web");
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment