1 2const updateUrl = which => { 3 const link = document.getElementById( which ); 4 if ( !link ) 5 return; 6 fetch( `/download/latest/${which}.json` ) 7 .then( response => response.text() ) 8 .then( text => { 9 const { url } = JSON.parse( text ); 10 link.href = url; 11 console.log( `${which} latest is ${url}` ); 12 }) 13 .catch( error => { 14 console.dir( error ); 15 }) 16} 17 18updateUrl( 'mac-intel' ); 19updateUrl( 'mac-arm64' ); 20updateUrl( 'windows' ); 21updateUrl( 'linux' );
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.