break out of iframe

This commit is contained in:
John Jarvis
2013-05-03 13:04:36 -04:00
parent 7dd763212e
commit 58dbcf9d31

View File

@@ -3,6 +3,15 @@
<html>
<head>
<%block name="title"><title>edX</title></%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('images/favicon.ico')}" />