diff options
| author | Tristan Zur <tzur@web.web.ccwn.org> | 2014-03-27 22:27:47 +0100 |
|---|---|---|
| committer | Tristan Zur <tzur@web.web.ccwn.org> | 2014-03-27 22:27:47 +0100 |
| commit | b62676ca5d3d6f6ba3f019ea3f99722e165a98d8 (patch) | |
| tree | 86722cb80f07d4569f90088eeaea2fc2f6e2ef94 /hugo/js/cross_framing_protection.js | |
Diffstat (limited to 'hugo/js/cross_framing_protection.js')
| -rw-r--r-- | hugo/js/cross_framing_protection.js | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/hugo/js/cross_framing_protection.js b/hugo/js/cross_framing_protection.js new file mode 100644 index 0000000..1e1caf0 --- /dev/null +++ b/hugo/js/cross_framing_protection.js @@ -0,0 +1,9 @@ +/* vim: set expandtab sw=4 ts=4 sts=4: */ +/** + * Conditionally included if framing is not allowed + */ +if(self == top) { + document.documentElement.style.display = 'block' ; +} else { + top.location = self.location ; +} |
