Sonar cleanup
This commit is contained in:
parent
bb10d52506
commit
65d264d1c6
|
@ -3,15 +3,15 @@
|
||||||
document.getElementById("nojs").className = "hidden";
|
document.getElementById("nojs").className = "hidden";
|
||||||
document.getElementById("js").className = "";
|
document.getElementById("js").className = "";
|
||||||
|
|
||||||
var apiField = document.getElementById("api-field");
|
const apiField = document.getElementById("api-field");
|
||||||
var userField = document.getElementById("user-field");
|
const userField = document.getElementById("user-field");
|
||||||
var channelField = document.getElementById("channel-field");
|
const channelField = document.getElementById("channel-field");
|
||||||
var emailField = document.getElementById("email-field");
|
const emailField = document.getElementById("email-field");
|
||||||
var deleteField = document.getElementById("delete-field");
|
const deleteField = document.getElementById("delete-field");
|
||||||
var submitField = document.getElementById("submit-field");
|
const submitField = document.getElementById("submit-field");
|
||||||
|
|
||||||
var endpoint = "none";
|
const endpoint = "none";
|
||||||
var apiStatus = "activate";
|
const apiStatus = "activate";
|
||||||
|
|
||||||
function validateUserField() {
|
function validateUserField() {
|
||||||
return !(userField.value > 0 && userField.checkValidity());
|
return !(userField.value > 0 && userField.checkValidity());
|
||||||
|
@ -122,9 +122,9 @@ function setStatus() {
|
||||||
function sendPayload() {
|
function sendPayload() {
|
||||||
document.getElementById("results").className = "";
|
document.getElementById("results").className = "";
|
||||||
|
|
||||||
var xhr = new XMLHttpRequest();
|
const xhr = new XMLHttpRequest();
|
||||||
var method;
|
let method;
|
||||||
var path = "/api/";
|
let path = "/api/";
|
||||||
|
|
||||||
switch (endpoint) {
|
switch (endpoint) {
|
||||||
case "generate":
|
case "generate":
|
||||||
|
|
Loading…
Reference in New Issue