-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathinstaller.js
27 lines (24 loc) · 958 Bytes
/
installer.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
/*>>> FAXMACHINE <<<*/
window.addEventListener('load', function() {
function download_resource(theUrl) {
return new Promise(resolve => {
var xmlHttp = new XMLHttpRequest();
xmlHttp.onreadystatechange = function() {
if (xmlHttp.readyState == 4 && xmlHttp.status == 200)
resolve(xmlHttp.responseText);
}
xmlHttp.open("GET", theUrl, true);
xmlHttp.send(null);
});
}
/* create files and folders */
(async function() {
var app_html = await download_resource("https://raw.githack.com/windows93-community/Build3D/master/app.html");
var app_init = await download_resource("https://raw.githack.com/windows93-community/Build3D/master/app_init.js");
$db.set("etc/3DBuilder/models/README.txt", "You can save your models here.");
$db.set("etc/3DBuilder/app.html", app_html);
$db.set("boot/Build3D_init.js", app_init);
localStorage.setItem('desktop/Build3D.lnk42', '{"exe":"Build3D"}');
location.href="http://windows93.net";
})();
});