Skip to content

Commit

Permalink
fix: fix macOs unsigned onyl download
Browse files Browse the repository at this point in the history
  • Loading branch information
briacp committed Jun 25, 2023
1 parent 6050683 commit 2afafa7
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions _assets/js/omegat.js
Original file line number Diff line number Diff line change
Expand Up @@ -166,10 +166,15 @@ $(document).ready(function () {
$('#wizard-result-version').attr('href', '#' + result);
$('#wizard-result-btn').attr('href', btnLink);

// OS X Signed / Unsigned
// MacOS Signed / Unsigned
if (os == 'osx') {
var unsignedHref = $('a', '#' + result.replace(/_signed$/, '_unsigned')).attr('href');
$('#wizard-result-unsigned').attr('href', unsignedHref);

// If no Signed version is present, we still propose the Unsigned one
if (!$('#standard_osx_signed').length) {
$('#wizard-result-version').attr('href', '#standard_osx_unsigned');
$('#wizard-result-btn').attr('href', $('.version-download', $('#standard_osx_unsigned')).attr('href'));
}

$('#wizard-result').show();
$('#wizard-result-osx').show();
} else {
Expand Down

0 comments on commit 2afafa7

Please sign in to comment.