8 lines
195 B
JavaScript
8 lines
195 B
JavaScript
var xhr = new XMLHttpRequest();
|
|
xhr.open('GET', 'scenes/demo.md?v='+Math.random());
|
|
xhr.onload = function() {
|
|
if(xhr.status===200){
|
|
Game.onload(xhr.responseText);
|
|
}
|
|
};
|
|
xhr.send(); |