Skip to content

Commit c402df1

Browse files
authored
Update index.html
1 parent 6ff8690 commit c402df1

File tree

1 file changed

+4
-12
lines changed

1 file changed

+4
-12
lines changed

docs/index.html

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff 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');

0 commit comments

Comments
 (0)