aboutsummaryrefslogtreecommitdiffstats
path: root/install.js
diff options
context:
space:
mode:
author1024x22018-06-05 12:37:32 +0100
committerGitHub2018-06-05 12:37:32 +0100
commit22ceac0c73bb27206d3e73c3d1e17890511a167a (patch)
tree46afe518bd4eccb0b0e8fb34b9685d6a0c9cfc79 /install.js
parentc93f073d1da3b08ebc45effdabc91c965a78c5e0 (diff)
parent7b638d58d99fa015adaae759696b88f9206fe297 (diff)
Merge pull request #7 from robbie0630/patch-1
Huge async overhaul + minor installer update
Diffstat (limited to 'install.js')
-rw-r--r--install.js13
1 files changed, 2 insertions, 11 deletions
diff --git a/install.js b/install.js
index d1e7780..edc4ef4 100644
--- a/install.js
+++ b/install.js
@@ -1,18 +1,9 @@
-var _main = `function loadJS (source, onready){
- var sc = document.createElement("script");
- sc.src = source;
- sc.type = "text/javascript";
- if (onready) sc.addEventListener("load", onready);
- document.head.appendChild(sc);
- return sc;
-}
-
-var interval = setInterval(function () {
+var _main = `var interval = setInterval(function () {
try {
if (!!le) {
localStorage[".pkg93/userscript"] = "";
clearInterval(interval);
- loadJS("https://rawgit.com/pkg93/pkg93/master/pkg93.js", function () {});
+ $loader.script("https://rawgit.com/pkg93/pkg93/master/pkg93.js");
}
} catch (err) {
console.error(err);