Created
April 21, 2011 14:36
-
-
Save spangenberg/934647 to your computer and use it in GitHub Desktop.
Change fist stylesheets name from screen to canvas if the website is rendered in a iframe.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
jQuery -> | |
if window is not window.top | |
link = $("link:first") | |
href = link.attr("href").replace /screen/, "canvas" | |
link.attr "href", href |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment