changed var to let

This commit is contained in:
Lauchmelder 2021-11-27 03:23:39 +01:00
parent ff9e140f1e
commit 191cc6af59

View file

@ -1,7 +1,7 @@
function loadScript(filepath: string): string function loadScript(filepath: string): string
{ {
var result = null; let result = null;
var xmlhttp = new XMLHttpRequest(); let xmlhttp = new XMLHttpRequest();
xmlhttp.open("GET", filepath, false); xmlhttp.open("GET", filepath, false);
xmlhttp.send(); xmlhttp.send();
if (xmlhttp.status==200) { if (xmlhttp.status==200) {