From 752a9650a35cee42196a639d18a502e803663d2f Mon Sep 17 00:00:00 2001 From: Moritz Warning Date: Mon, 15 Jun 2020 00:07:11 +0200 Subject: [PATCH] forgot asu_url as url prefix this makes it work with chef.libremesh.org again --- index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 => { -- 2.30.2