File tree Expand file tree Collapse file tree 2 files changed +6
-10
lines changed Expand file tree Collapse file tree 2 files changed +6
-10
lines changed Original file line number Diff line number Diff line change 1
1
/* vim: set expandtab sw=4 ts=4 sts=4: */
2
2
/**
3
- * Conditionally included if third-party framing is not allowed
4
- *
3
+ * Conditionally included if framing is not allowed
5
4
*/
6
-
7
- try {
8
- if ( top != self ) {
9
- top . location . href = self . location . href ;
10
- }
11
- } catch ( e ) {
12
- alert ( "Redirecting... (error: " + e ) ;
13
- top . location . href = self . location . href ;
5
+ if ( self == top ) {
6
+ document . documentElement . style . display = 'block' ;
7
+ } else {
8
+ top . location = self . location ;
14
9
}
Original file line number Diff line number Diff line change @@ -531,6 +531,7 @@ private function _getMetaTags()
531
531
$ retval = '<meta charset="utf-8" /> ' ;
532
532
$ retval .= '<meta name="robots" content="noindex,nofollow" /> ' ;
533
533
$ retval .= '<meta http-equiv="X-UA-Compatible" content="IE=Edge"> ' ;
534
+ $ retval .= '<style>html{display: none;}</style> ' ;
534
535
return $ retval ;
535
536
}
536
537
You can’t perform that action at this time.
0 commit comments