diff options
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 ; +} |
