Skip to content

Commit

Permalink
fix: download mirror
Browse files Browse the repository at this point in the history
  • Loading branch information
teaSummer committed Aug 6, 2024
1 parent 75350c4 commit 8d71fa0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion scripts/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -111,8 +111,9 @@ const launcherChanged = ((event = {target: $('mdui-select.launcher-list')}) => {
};
for (const attribute of ['data-download', 'data-dev-download', 'data-url']) {
const button = $(`.${attribute}-launcher`);
const url = downloadMirror(checked.attr(attribute));
let url = checked.attr(attribute);
if (attribute.endsWith('download')) {
url = downloadMirror(url);
const removeEmpty = ((version) => {
if (version === void 0) {
button.removeAttr('href').removeAttr('title').removeAttr('data-backup-href');
Expand Down

0 comments on commit 8d71fa0

Please sign in to comment.