Commit d9fc21fc by caesar2164

Merge pull request #277 from edx/giulio/enable-iframe

move marketing iframe breakout script to inside existing conditional
parents 2cd18dfa 50f837d9
...@@ -21,17 +21,17 @@ ...@@ -21,17 +21,17 @@
<title>Home | class.stanford.edu</title> <title>Home | class.stanford.edu</title>
% else: % else:
<title>edX</title> <title>edX</title>
% endif
</%block>
<script type="text/javascript"> <script type="text/javascript">
/* immediately break out of an iframe if coming /* immediately break out of an iframe if coming from the marketing website */
from the marketing website */
(function(window) { (function(window) {
if (window.location !== window.top.location) { if (window.location !== window.top.location) {
window.top.location = window.location; window.top.location = window.location;
} }
})(this); })(this);
</script> </script>
% endif
</%block>
<link rel="icon" type="image/x-icon" href="${static.url(settings.FAVICON_PATH)}" /> <link rel="icon" type="image/x-icon" href="${static.url(settings.FAVICON_PATH)}" />
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment