Skip to content

Commit

Permalink
- Fixed bug for linux
Browse files Browse the repository at this point in the history
- Changed default to windows
  • Loading branch information
agata committed Jun 8, 2019
1 parent 03ec14b commit d068c25
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions download.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,12 @@ var updateDownloadButton = function() {
var patterns = {
'OS X': /^.+[.]dmg$/,
'Windows': /^.+[.]exe$/,
'Linux': /^.+[.]AppImage$/
'Windows XP': /^.+[.]exe$/,
'Ubuntu': /^.+[.]AppImage$/,
'Debian': /^.+[.]AppImage$/,
'Fedora': /^.+[.]AppImage$/,
'Red Hat': /^.+[.]AppImage$/,
'SuSE': /^.+[.]AppImage$/
}
var linkElem = document.getElementById('download-link');
var textElem = document.getElementById('download-text');
Expand Down Expand Up @@ -35,7 +40,7 @@ var updateDownloadButton = function() {
var newText = text
.replace('Biscuit', 'Biscuit for ' + platform.os.family)
.replace('v1.0.0', version)
.replace('dmg', ext);
.replace('exe', ext);
textElem.innerText = newText;
}
} else {
Expand Down

0 comments on commit d068c25

Please sign in to comment.