fixed includeHTML script
This commit is contained in:
parent
9380a5acd6
commit
b4f3c770b1
1 changed files with 1 additions and 1 deletions
|
@ -3,7 +3,7 @@ let z:HTMLCollectionOf<HTMLElement> = <HTMLCollectionOf<HTMLElement>> document.g
|
||||||
for (let i:number = 0; i < z.length; i++) {
|
for (let i:number = 0; i < z.length; i++) {
|
||||||
let element:HTMLElement = z[i];
|
let element:HTMLElement = z[i];
|
||||||
let externalFileURL:string = <string> element.getAttribute("includeHTML");
|
let externalFileURL:string = <string> element.getAttribute("includeHTML");
|
||||||
if (externalFileURL != "") {
|
if (externalFileURL) {
|
||||||
let xhr:XMLHttpRequest = new XMLHttpRequest();
|
let xhr:XMLHttpRequest = new XMLHttpRequest();
|
||||||
xhr.onreadystatechange = function() {
|
xhr.onreadystatechange = function() {
|
||||||
if (this.readyState == 4) {
|
if (this.readyState == 4) {
|
||||||
|
|
Loading…
Reference in a new issue