File tree Expand file tree Collapse file tree 1 file changed +4
-12
lines changed
Expand file tree Collapse file tree 1 file changed +4
-12
lines changed Original file line number Diff line number Diff line change @@ -3913,20 +3913,12 @@ <h3>Safety Levels</h3>
39133913 } else {
39143914 console . error ( 'GitHub button not found' ) ;
39153915 }
3916-
3917- // Add click event listener for Download button
3916+
3917+ // Add click event listener for Dowanload button
39183918 if ( downloadButton ) {
39193919 downloadButton . addEventListener ( 'click' , function ( ) {
3920- // Create temporary link element
3921- const downloadLink = document . createElement ( 'a' ) ;
3922- downloadLink . href = downloadUrl ;
3923- downloadLink . download = 'ssIDE.zip' ;
3924-
3925- // Append to body, click, and remove
3926- document . body . appendChild ( downloadLink ) ;
3927- downloadLink . click ( ) ;
3928- document . body . removeChild ( downloadLink ) ;
3929- console . log ( 'Downloading from:' , downloadUrl ) ;
3920+ window . open ( downloadUrl , '_blank' ) ;
3921+ console . log ( 'Switching page:' , downloadUrl ) ;
39303922 } ) ;
39313923 } else {
39323924 console . error ( 'Download button not found' ) ;
You can’t perform that action at this time.
0 commit comments