Revert "Login screen improvements and added favicon (#227)"
[openemr.git] / phpmyadmin / js / cross_framing_protection.js
blob91e9aa9e492fb966a1f4cc0f27d5abf6893ef624
1 /* vim: set expandtab sw=4 ts=4 sts=4: */
2 /**
3  * Conditionally included if framing is not allowed
4  */
5 if (self == top) {
6     var style_element = document.getElementById("cfs-style");
7     // check if style_element has already been removed
8     // to avoid frequently reported js error
9     if (typeof(style_element) != 'undefined' && style_element != null) {
10         style_element.parentNode.removeChild(style_element);
11     }
12 } else {
13     top.location = self.location;