Skip to content

Commit

Permalink
fixed an issue
Browse files Browse the repository at this point in the history
  • Loading branch information
Prakash committed Jan 11, 2021
1 parent 98b73c3 commit 877f2fa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/resources/generators/javascript.html
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
<script type="text/javascript">
if (window.XMLHttpRequest) {
var xhr = new XMLHttpRequest();
xhr.open('GET', encodeURI("${url}"));
xhr.setRequestHeader('X-Requested-With', 'XMLHttpRequest');
xhr.timeout = 10000;
xhr.onload = function () {
Expand All @@ -28,7 +29,6 @@
if (elemId) elemId.innerHTML = xhr.responseText;
}
};
xhr.open('GET', encodeURI("${url}"));
xhr.send();
}

Expand Down

0 comments on commit 877f2fa

Please sign in to comment.