This repository was archived by the owner on Feb 7, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +12
-12
lines changed Expand file tree Collapse file tree 2 files changed +12
-12
lines changed Original file line number Diff line number Diff line change 38
38
} ;
39
39
40
40
// find all links and add an onclick handler for replacing the iframe address so the history works
41
- var aTags = document . getElementsByTagName ( " a " );
42
- for (a in aTags) {
43
- aTags[a].onclick = function(e ) {
44
- if (self != top ) {
41
+ if ( self != top) {
42
+ var aTags = document.getElementsByTagName( " a " );
43
+ for (a in aTags ) {
44
+ aTags[a].onclick = function(e ) {
45
45
e.preventDefault();
46
46
window.location.replace(this.getAttribute(" href" ));
47
- }
48
- } ;
47
+ } ;
48
+ }
49
49
}
50
50
51
51
// watch the iframe source so that it can be sent back to everyone else.
Original file line number Diff line number Diff line change 39
39
} ;
40
40
41
41
// find all links and add an onclick handler for replacing the iframe address so the history works
42
- var aTags = document . getElementsByTagName ( ' a ' );
43
- for (a in aTags) {
44
- aTags[a].onclick = function(e ) {
45
- if (self != top ) {
42
+ if ( self != top) {
43
+ var aTags = document.getElementsByTagName( ' a ' );
44
+ for (a in aTags ) {
45
+ aTags[a].onclick = function(e ) {
46
46
e.preventDefault();
47
47
window.location.replace(this.getAttribute(" href" ));
48
- }
49
- } ;
48
+ } ;
49
+ }
50
50
}
51
51
52
52
// watch the iframe source so that it can be sent back to everyone else.
You can’t perform that action at this time.
0 commit comments