diff options
author | nickago <ngonella@calpoly.edu> | 2015-07-24 13:50:56 -0700 |
---|---|---|
committer | nickago <ngonella@calpoly.edu> | 2015-07-24 13:50:56 -0700 |
commit | c0d225c6d8ac3f1f7f07047f6527d16d173d3550 (patch) | |
tree | 3c0dab0a026829c183935f0176b3bc85e11651ba /web/templates | |
parent | b813234f4cc38e72bb94556d3a4acdcde5071468 (diff) | |
download | chat-c0d225c6d8ac3f1f7f07047f6527d16d173d3550.tar.gz chat-c0d225c6d8ac3f1f7f07047f6527d16d173d3550.tar.bz2 chat-c0d225c6d8ac3f1f7f07047f6527d16d173d3550.zip |
Removed ability to place MM in an iframe
Diffstat (limited to 'web/templates')
-rw-r--r-- | web/templates/head.html | 7 |
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 = {}; |