summaryrefslogtreecommitdiffstats
path: root/web/templates/head.html
diff options
context:
space:
mode:
authornickago <ngonella@calpoly.edu>2015-07-24 13:50:56 -0700
committernickago <ngonella@calpoly.edu>2015-07-24 13:50:56 -0700
commitc0d225c6d8ac3f1f7f07047f6527d16d173d3550 (patch)
tree3c0dab0a026829c183935f0176b3bc85e11651ba /web/templates/head.html
parentb813234f4cc38e72bb94556d3a4acdcde5071468 (diff)
downloadchat-c0d225c6d8ac3f1f7f07047f6527d16d173d3550.tar.gz
chat-c0d225c6d8ac3f1f7f07047f6527d16d173d3550.tar.bz2
chat-c0d225c6d8ac3f1f7f07047f6527d16d173d3550.zip
Removed ability to place MM in an iframe
Diffstat (limited to 'web/templates/head.html')
-rw-r--r--web/templates/head.html7
1 files changed, 7 insertions, 0 deletions
diff --git a/web/templates/head.html b/web/templates/head.html
index d14340998..7a7d4fe8e 100644
--- a/web/templates/head.html
+++ b/web/templates/head.html
@@ -36,6 +36,13 @@
<script type="text/javascript" src="https://cloudfront.loggly.com/js/loggly.tracker.js" async></script>
<script id="config" type="text/javascript" src="/static/config/config.js"></script>
+ <style id="antiClickjack">body{display:none !important;}</style>
+ <script type="text/javascript">
+ if (self === top) {
+ var blocker = document.getElementById("antiClickjack");
+ blocker.parentNode.removeChild(blocker);
+ }
+ </script>
<script>
if (config == null) {
config = {};