This repository has been archived on 2023-10-16. You can view files and clone it, but cannot push or open issues or pull requests.
Teacher_Helper_System/phpMyAdmin4.8.5/js/cross_framing_protection.js
2022-05-08 02:37:00 +08:00

15 lines
471 B
JavaScript

/* vim: set expandtab sw=4 ts=4 sts=4: */
/**
* Conditionally included if framing is not allowed
*/
if (self === top) {
var style_element = document.getElementById('cfs-style');
// check if style_element has already been removed
// to avoid frequently reported js error
if (typeof(style_element) !== 'undefined' && style_element !== null) {
style_element.parentNode.removeChild(style_element);
}
} else {
top.location = self.location;
}