diff options
author | 2023-07-12 14:27:57 -0700 | |
---|---|---|
committer | 2023-07-12 14:27:57 -0700 | |
commit | 11bf05c7044d6e81616b31b3211926c1b956fe6f (patch) | |
tree | 713cdf79ee98b222b1939701cf17334bda7a46a3 | |
parent | downloads: better loadTabByHash (diff) | |
download | www-11bf05c7044d6e81616b31b3211926c1b956fe6f.tar.gz www-11bf05c7044d6e81616b31b3211926c1b956fe6f.tar.bz2 www-11bf05c7044d6e81616b31b3211926c1b956fe6f.zip |
downloads: fix JS typos
Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
-rw-r--r-- | downloads/index.html | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/downloads/index.html b/downloads/index.html index 0661c4d..e29dc7b 100644 --- a/downloads/index.html +++ b/downloads/index.html @@ -4,7 +4,7 @@ nav1-show: true nav1-weight: 9 title: 'Downloads' -inlinejs: "$(loadTabByHash(););" +inlinejs: "$(loadTabByHash());" --- <script> // Select the right tab based on the hash. @@ -15,7 +15,7 @@ inlinejs: "$(loadTabByHash(););" var VALID_ARCHES = ['amd64','alpha','arm','arm64','hppa','ia64','loong','mips','m68k','ppc','riscv','s390','sparc','x86']; var DEFAULT_ARCH = 'amd64'; // If it was an advanced anchor/hash in the URL, drop it for validation. - h = s.replace(/-advanced$/,''); + h = h.replace(/-advanced$/,''); // Validate arch now (without the leading '#' or trailing -advanced. if(!VALID_ARCHES.include(h.substring(1))) { h = '#' + DEFAULT_ARCH; |