Translated using Weblate (Korean)
[phpmyadmin.git] / js / cross_framing_protection.js
blob2f94fe533713643023173b10ddc00488a676781b
1 /**
2  * Conditionally included if framing is not allowed
3  */
4 if (self === top) {
5     var styleElement = document.getElementById('cfs-style');
6     // check if styleElement has already been removed
7     // to avoid frequently reported js error
8     if (typeof(styleElement) !== 'undefined' && styleElement !== null) {
9         styleElement.parentNode.removeChild(styleElement);
10     }
11 } else {
12     top.location = self.location;