diff options
author | 1024x2 | 2018-06-05 12:37:32 +0100 |
---|---|---|
committer | GitHub | 2018-06-05 12:37:32 +0100 |
commit | 22ceac0c73bb27206d3e73c3d1e17890511a167a (patch) | |
tree | 46afe518bd4eccb0b0e8fb34b9685d6a0c9cfc79 /install.js | |
parent | c93f073d1da3b08ebc45effdabc91c965a78c5e0 (diff) | |
parent | 7b638d58d99fa015adaae759696b88f9206fe297 (diff) |
Merge pull request #7 from robbie0630/patch-1
Huge async overhaul + minor installer update
Diffstat (limited to 'install.js')
-rw-r--r-- | install.js | 13 |
1 files changed, 2 insertions, 11 deletions
@@ -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); |