fixed includeHTML script

This commit is contained in:
Jonas Leder 2021-01-12 09:48:32 +01:00
parent 9380a5acd6
commit b4f3c770b1

View file

@ -3,7 +3,7 @@ let z:HTMLCollectionOf<HTMLElement> = <HTMLCollectionOf<HTMLElement>> document.g
for (let i:number = 0; i < z.length; i++) {
let element:HTMLElement = z[i];
let externalFileURL:string = <string> element.getAttribute("includeHTML");
if (externalFileURL != "") {
if (externalFileURL) {
let xhr:XMLHttpRequest = new XMLHttpRequest();
xhr.onreadystatechange = function() {
if (this.readyState == 4) {