Update Autoloader.js

This commit is contained in:
Lucas 2019-06-29 15:23:51 +01:00 committed by GitHub
parent 0fdb268181
commit 397c3b04b4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 8 additions and 13 deletions

View File

@ -26,18 +26,13 @@
* http://creativecommons.org/licenses/by/2.5/
*/
(function(){
//object constructor
function runinsert(){
//object constructor
function runinsert(){
// run the Herosaver Script
var xhr=new XMLHttpRequest;xhr.open("get","https://raw.githubusercontent.com/TeaWithLucas/Herosaver/master/herosaver.js",true);xhr.onreadystatechange=function(){if(xhr.readyState==4){var script=document.createElement("script");script.type="text/javascript";script.text=xhr.responseText;document.body.appendChild(script)}};xhr.send(null);
// run the Herosaver Script
var xhr=new XMLHttpRequest;xhr.open("get","https://raw.githubusercontent.com/TeaWithLucas/Herosaver/master/herosaver.js",true);xhr.onreadystatechange=function(){if(xhr.readyState==4){var script=document.createElement("script");script.type="text/javascript";script.text=xhr.responseText;document.body.appendChild(script)}};xhr.send(null);
};
//instantiate and run
var runinsert = new runinsert();
})();
};
//instantiate and run
runinsert();