From: Moritz Warning Date: Sun, 14 Jun 2020 22:07:11 +0000 (+0200) Subject: forgot asu_url as url prefix X-Git-Tag: v2.2.1~9 X-Git-Url: http://git.openwrt.org/?a=commitdiff_plain;h=752a9650a35cee42196a639d18a502e803663d2f;p=web%2Ffirmware-selector-openwrt-org.git forgot asu_url as url prefix this makes it work with chef.libremesh.org again --- diff --git a/index.js b/index.js index 2f305be..eafde38 100644 --- a/index.js +++ b/index.js @@ -280,7 +280,7 @@ function setupAutocompleteList(input, items, as_list, onbegin, onend) { // for attended sysupgrade function updatePackageList(version, target) { // set available packages - fetch(config.versions[version] + '/' + target + '/index.json') + fetch(config.asu_url + '/' + config.versions[version] + '/' + target + '/index.json') .then(response => response.json()) .then(all_packages => { setupAutocompleteList($('packages'), all_packages, true, _ => {}, textarea => { @@ -394,7 +394,7 @@ function init() { setupSelectList($('versions'), Object.keys(config.versions), version => { var url = config.versions[version]; if (config.asu_url) { - url += "/profiles.json"; + url = config.asu_url + '/' + url + '/profiles.json'; } fetch(url) .then(obj => {