Commit 50f837d9 by Giulio Gratta

move marketing iframe breakout script to inside existing conditional

parent 38d7ddf0
......@@ -21,17 +21,17 @@
<title>Home | class.stanford.edu</title>
% else:
<title>edX</title>
<script type="text/javascript">
/* immediately break out of an iframe if coming from the marketing website */
(function(window) {
if (window.location !== window.top.location) {
window.top.location = window.location;
}
})(this);
</script>
% endif
</%block>
<script type="text/javascript">
/* immediately break out of an iframe if coming
from the marketing website */
(function(window) {
if (window.location !== window.top.location) {
window.top.location = window.location;
}
})(this);
</script>
<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