66
77declare function acquireVsCodeApi ( ) : VsCode ;
88
9- const vscode = acquireVsCodeApi ( ) ;
9+ const vscode = acquireVsCodeApi ( ) ;
1010
1111// notify vscode when mouse buttons are clicked
1212// used to implement back/forward on mouse buttons 3/4
@@ -61,7 +61,7 @@ window.document.body.onload = () => {
6161 }
6262
6363 // notify vscode when links are clicked:
64- const hyperLinks = document . getElementsByTagName ( 'a' ) ;
64+ const hyperLinks = document . getElementsByTagName ( 'a' ) ;
6565
6666 for ( let i = 0 ; i < hyperLinks . length ; i ++ ) {
6767 const hrefAbs = hyperLinks [ i ] . href ;
@@ -72,7 +72,7 @@ window.document.body.onload = () => {
7272 document . location . hash = hrefRel ;
7373 } ;
7474 } else if ( hrefAbs && hrefAbs . startsWith ( 'vscode-webview://' ) ) {
75- hyperLinks [ i ] . onclick = ( ) => {
75+ hyperLinks [ i ] . onclick = ( ) => {
7676
7777 const url2 = new URL ( hrefRel , url1 ) ;
7878 const finalHref = url2 . toString ( ) ;
@@ -81,11 +81,11 @@ window.document.body.onload = () => {
8181 message : 'linkClicked' ,
8282 href : finalHref ,
8383 scrollY : window . scrollY
84- } ) ;
84+ } ) ;
8585 } ;
8686 }
8787 }
88-
88+
8989 // notify vscode when code is clicked:
9090 if ( document . body . classList . contains ( 'preClickable' ) ) {
9191 const codeElements = document . getElementsByTagName ( 'pre' ) ;
0 commit comments