Skip to content

Commit a28ef6c

Browse files
committed
If user uses .sbml extension then do not add default extension
1 parent 90a4c0c commit a28ef6c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

main.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -284,7 +284,7 @@ function saveCode(codeType) {
284284
type: "text/plain",
285285
});
286286
var downloadLink = document.createElement("a");
287-
if( promptFilename.includes(fileExt) ) {
287+
if( promptFilename.includes(fileExt) || promptFilename.includes(".sbml") ) {
288288
downloadLink.download = promptFilename; }
289289
else { downloadLink.download = promptFilename + fileExt; }
290290

0 commit comments

Comments
 (0)