This repository was archived by the owner on Feb 7, 2023. It is now read-only.
File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 3838 } ;
3939
4040 // 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 ) {
4545 e.preventDefault();
4646 window.location.replace(this.getAttribute(" href" ));
47- }
48- } ;
47+ } ;
48+ }
4949 }
5050
5151 // watch the iframe source so that it can be sent back to everyone else.
Original file line number Diff line number Diff line change 3939 } ;
4040
4141 // 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 ) {
4646 e.preventDefault();
4747 window.location.replace(this.getAttribute(" href" ));
48- }
49- } ;
48+ } ;
49+ }
5050 }
5151
5252 // 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