Files
arif_grafin/pma/js/src/cross_framing_protection.js
dev@siliconpin.com a3067c5ad4 first commit
2025-08-07 11:53:41 +05:30

14 lines
423 B
JavaScript

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