js: Default to linux-amd64 and fix split() call on platform (#187)

In certain cases where the platform cannot be automatically determined, we should at least populate a default so that the download page doesn't break.
This commit is contained in:
Francis Lavoie 2021-08-13 16:59:45 -04:00 committed by GitHub
parent 5f09f05e08
commit a7861e98f7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 11 additions and 8 deletions

View file

@ -23,8 +23,7 @@
<div>
<div>
<b>Platform:</b>
<select size="1" id="platform">
<option></option>
<select size="1" id="platform" selected="linux-amd64">
<option value="dragonfly-amd64">Dragonfly amd64</option>
<option value="freebsd-amd64">FreeBSD amd64</option>
<option value="freebsd-arm-6">FreeBSD arm 6</option>