Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 0 additions & 6 deletions static/js/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -129,12 +129,6 @@
for (var i = 0; i < linkEls.length; i++) {
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Personally I'd change this to a forEach since it's shorter, but maybe later.

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In fact it does no obvious performance improvement, so I think this can be changed later :)

version = linkEls[i].getAttribute('data-version');
el = linkEls[i];

// Windows 64-bit files for 0.x.x need to be prefixed with 'x64/'
if (os === 'Win' && version[1] === '0' && arch === 'x64') {
el.href += arch + '/';
}

el.href += filename.replace('%version%', version);
}
}
Expand Down