Skip to content

Commit

Permalink
If user uses .sbml extension then do not add default extension
Browse files Browse the repository at this point in the history
  • Loading branch information
bartjuw committed Dec 12, 2023
1 parent 90a4c0c commit a28ef6c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.js
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,7 @@ function saveCode(codeType) {
type: "text/plain",
});
var downloadLink = document.createElement("a");
if( promptFilename.includes(fileExt) ) {
if( promptFilename.includes(fileExt) || promptFilename.includes(".sbml") ) {
downloadLink.download = promptFilename; }
else { downloadLink.download = promptFilename + fileExt; }

Expand Down

0 comments on commit a28ef6c

Please sign in to comment.