1 /* vim: set expandtab sw=4 ts=4 sts=4: */
3 * Conditionally called from libraries/header_scripts.inc.php
4 * if third-party framing is not allowed
9 // can't access this if on a different domain
10 var topdomain = top.document.domain;
11 // double-check just for sure
12 if (topdomain != self.document.domain) {
13 alert("Redirecting...");
14 top.location.replace(self.document.URL.substring(0, self.document.URL.lastIndexOf("/")+1));
18 alert("Redirecting... (error: " + e);
19 top.location.replace(self.document.URL.substring(0, self.document.URL.lastIndexOf("/")+1));