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

cross_framing_protection.js « src « js - github.com/phpmyadmin/phpmyadmin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 173295d1b50db4911df05f7823a7f1d7f2a31e66 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
/* vim: set expandtab sw=4 ts=4 sts=4: */

/**
 * 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;
}