Skip to content
Snippets Groups Projects
Commit 58dbcf9d authored by John Jarvis's avatar John Jarvis
Browse files

break out of iframe

parent 7dd76321
No related merge requests found
......@@ -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')}" />
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment