polycule-connect/polyculeconnect/static/scripts/index.js
Melora Hugues 1e8b9ef161
All checks were successful
continuous-integration/drone/push Build is passing
Set correct login flow
2023-10-15 20:11:50 +02:00

11 lines
345 B
JavaScript

let connectorForm = document.getElementById("connectorform");
connectorForm.addEventListener("submit", (e) => {
e.preventDefault();
let nextURL = new URL(window.location.href);
let connectorName = document.getElementById("cname").value;
nextURL.searchParams.append("connector_id", connectorName)
window.location.href = nextURL;
});