Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/phpmyadmin/phpmyadmin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'js/src/cross_framing_protection.js')
-rw-r--r--js/src/cross_framing_protection.js4
1 files changed, 1 insertions, 3 deletions
diff --git a/js/src/cross_framing_protection.js b/js/src/cross_framing_protection.js
index e25e60ab51..c43e7958e6 100644
--- a/js/src/cross_framing_protection.js
+++ b/js/src/cross_framing_protection.js
@@ -2,7 +2,7 @@
* Conditionally included if framing is not allowed.
* @return {void}
*/
-const crossFramingProtection = () => {
+window.crossFramingProtection = () => {
if (window.allowThirdPartyFraming) {
return;
}
@@ -20,5 +20,3 @@ const crossFramingProtection = () => {
styleElement.parentNode.removeChild(styleElement);
};
-
-crossFramingProtection();