diff --git a/scripts/config.js b/scripts/config.js index 5f5604c..c77f042 100644 --- a/scripts/config.js +++ b/scripts/config.js @@ -13,6 +13,11 @@ async function init () { let type = uriData.type; let vmid = uriData.vmid; await populateForm(node, type, vmid); + + let cancelButton = document.querySelector("#cancel"); + cancelButton.addEventListener("click", () => { + goToPage("index.html"); + }); } async function populateForm (node, type, vmid) {