Merge pull request #277 from edx/giulio/enable-iframe
move marketing iframe breakout script to inside existing conditional
This commit is contained in:
@@ -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)}" />
|
||||
|
||||
|
||||
Reference in New Issue
Block a user