Move vars to lets and fix some things with recording.conf

Signed-off-by: Simon L <szaimen@e.mail.de>
This commit is contained in:
Simon L 2023-06-06 11:27:52 +02:00
parent dc77a2732c
commit cbd86136cc
11 changed files with 27 additions and 24 deletions

View file

@ -1,6 +1,6 @@
"use strict";
(function (){
var lastError;
let lastError;
function showError(message) {
const body = document.getElementsByTagName('body')[0]
@ -45,7 +45,7 @@
if (lastError) {
lastError.remove()
}
var xhr = new XMLHttpRequest();
let xhr = new XMLHttpRequest();
xhr.addEventListener('load', handleEvent);
xhr.addEventListener('error', () => showError("Failed to talk to server."));
xhr.addEventListener('error', () => disableSpinner());