changed var to let
This commit is contained in:
parent
ff9e140f1e
commit
191cc6af59
|
@ -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) {
|
||||||
|
|
Loading…
Reference in a new issue