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

cross_framing_protection.js « js - github.com/phpmyadmin/phpmyadmin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 40f3a398ad4ddc874bf8113fa075ef4e3da7d427 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
/* vim: set expandtab sw=4 ts=4 sts=4: */
/**
 * Conditionally included if framing is not allowed
 */
if (self === top) {
    var style_element = document.getElementById('cfs-style');
    // check if style_element has already been removed
    // to avoid frequently reported js error
    if (typeof(style_element) !== 'undefined' && style_element !== null) {
        style_element.parentNode.removeChild(style_element);
    }
} else {
    top.location = self.location;
}