Skip to content

Instantly share code, notes, and snippets.

@jippi
Created May 14, 2012 14:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jippi/2694344 to your computer and use it in GitHub Desktop.
Save jippi/2694344 to your computer and use it in GitHub Desktop.
if (top == self) { // If we're not in an iframe:
// Redirecting to fanpage on Facebook
if (location.host.search(/\.like.st$/i) != -1) {
location = Nodes.config('fanpage') + '?sk=app_' + Nodes.config('app_id');
}
jQuery(document).ready(function() {
// Make sure there are scrollbars (for testing purposes):
jQuery('body').css('overflow', 'visible')
})
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment