Initial commit
This commit is contained in:
15
pma/js/dist/cross_framing_protection.js
vendored
Normal file
15
pma/js/dist/cross_framing_protection.js
vendored
Normal file
@ -0,0 +1,15 @@
|
||||
"use strict";
|
||||
|
||||
/**
|
||||
* 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;
|
||||
}
|
Reference in New Issue
Block a user