File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 113113 var userAgent = navigator . userAgent ;
114114 var osMatch = userAgent . match ( / ( W i n | M a c | L i n u x ) / ) ;
115115 var os = ( osMatch && osMatch [ 1 ] ) || '' ;
116- var arch =
117- userAgent . match ( / x 8 6 _ 6 4 | W i n 6 4 | W O W 6 4 / ) || navigator . cpuClass === 'x64'
118- ? 'x64'
119- : 'x86' ;
120116 var buttons = document . querySelectorAll ( '.home-downloadbutton' ) ;
121117 var downloadHead = document . querySelector ( '#home-downloadhead' ) ;
122118 var dlLocal ;
141137 downloadHead . textContent = dlLocal + ' macOS' ;
142138 break ;
143139 case 'Win' :
144- versionIntoHref ( buttons , 'node-%version%-' + arch + ' .msi') ;
145- downloadHead . textContent = dlLocal + ' Windows (' + arch + ' )';
140+ versionIntoHref ( buttons , 'node-%version%-x64 .msi' ) ;
141+ downloadHead . textContent = dlLocal + ' Windows (x64 )' ;
146142 break ;
147143 case 'Linux' :
148144 versionIntoHref ( buttons , 'node-%version%-linux-x64.tar.xz' ) ;
149145 downloadHead . textContent = dlLocal + ' Linux (x64)' ;
150146 break ;
151147 }
152148 }
153-
154- // Windows button on download page
155- var winButton = document . querySelector ( '#windows-downloadbutton' ) ;
156- if ( winButton && os === 'Win' ) {
157- var winText = winButton . querySelector ( 'p' ) ;
158- winButton . href = winButton . href . replace ( / x ( 8 6 | 6 4 ) / , arch ) ;
159- winText . textContent = winText . textContent . replace ( / x ( 8 6 | 6 4 ) / , arch ) ;
160- }
161149} ) ( ) ;
You can’t perform that action at this time.
0 commit comments