changed var to let
This commit is contained in:
parent
ff9e140f1e
commit
191cc6af59
|
@ -1,7 +1,7 @@
|
|||
function loadScript(filepath: string): string
|
||||
{
|
||||
var result = null;
|
||||
var xmlhttp = new XMLHttpRequest();
|
||||
let result = null;
|
||||
let xmlhttp = new XMLHttpRequest();
|
||||
xmlhttp.open("GET", filepath, false);
|
||||
xmlhttp.send();
|
||||
if (xmlhttp.status==200) {
|
||||
|
|
Loading…
Reference in a new issue