diff options
author | 1024x2 | 2018-11-01 21:16:16 +0000 |
---|---|---|
committer | 1024x2 | 2018-11-01 21:16:16 +0000 |
commit | a051aace376492a48c10615106dda222a7136300 (patch) | |
tree | 019fa86518eedba4484744493a4bb4067356f2be /src/install.js | |
parent | 583e13ca1fbe80fd0402fa49bcdd8d0e5df3a065 (diff) |
new fancy webpack stuff
Diffstat (limited to 'src/install.js')
-rw-r--r-- | src/install.js | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/src/install.js b/src/install.js new file mode 100644 index 0000000..cf728d5 --- /dev/null +++ b/src/install.js @@ -0,0 +1,21 @@ +import pkg93code from "!raw-loader!../dist/pkg93.js"; + +$alert({ + msg: "Welcome to teh pkg93 installer, what do you want to do?", + title: "pkg93 installer", + btnOk: "Install/upgrade pkg93", + btnCancel: "Run away", + img: "//cdn.rawgit.com/1024x2/pkg93/70039c02/pkg.png" +}, function(isOK) { + if (isOK) { + var _main = `i=setInterval(()=>{try{if(le){clearInterval(i);${pkg93code}}}catch(err){console.error(err)}},5000);`; + localStorage["boot/pkg93.js"] = _main; + eval(_main); + $alert({ + msg: "pkg93 has installed successfully!", + title: "pkg93 installer", + btnOk: "kthxbai", + img: "//cdn.rawgit.com/1024x2/pkg93/70039c02/pkg.png" + }); + } +}); |