Commit 83da5cb8 authored by Marco Kellershoff's avatar Marco Kellershoff 🤸

Fix hostname save

parent c9efdce0
......@@ -90,7 +90,6 @@
const getSelectedFiletype = n => n.options[n.selectedIndex].value;
const save = function(msg) {
msg = typeof msg === "string" ? msg : "Configuration saved.";
const files = [];
$$("li.file").forEach((item) => {
......@@ -102,7 +101,7 @@
const fileDisabled =
item.querySelector(".checkbox-file-enabled")
.checked === false;
$(".input-file-hostnames")
item.querySelector(".input-file-hostnames")
.value.split(",")
.forEach((hostname) => {
hostnames.push(hostname.trim());
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment