From 583e13ca1fbe80fd0402fa49bcdd8d0e5df3a065 Mon Sep 17 00:00:00 2001 From: 1024x2 Date: Tue, 2 Oct 2018 15:21:33 +0100 Subject: new domain --- pkg93.js | 22 +++++++++------------- 1 file changed, 9 insertions(+), 13 deletions(-) diff --git a/pkg93.js b/pkg93.js index c1f0232..a448573 100644 --- a/pkg93.js +++ b/pkg93.js @@ -57,7 +57,7 @@ console.log("%c[pkg93]%c Injecting packages...", "font-weight:bold", "font-weigh try { if (localStorage[".pkg93/config.json"] === undefined) { console.log("%c[pkg93]%c You seem new. Creating config...", "font-weight:bold", "font-weight:normal"); - localStorage[".pkg93/config.json"] = `{"repos": ["https://codinggamerhd.com/main-repo"], "installed": [], "pkglist": []}`; + localStorage[".pkg93/config.json"] = `{"repos": ["https://1024x2.xyz/main-repo"], "installed": [], "pkglist": []}`; } var config = JSON.parse(localStorage[".pkg93/config.json"]); for (let pkg of config.installed) { @@ -291,18 +291,14 @@ var pkg93 = { delete localStorage[".pkg93/packages/" + pkg + ".json"]; config.installed.splice(index, 1); cli.log("OK Removed!"); + return true; } else { try { - if (le._apps[config.installed[index]] === null) { - cli.log("ERR Already removed."); - return false; - } else { - delete le._apps[config.installed[index]]; - delete localStorage[".pkg93/packages/" + config.installed[index] + ".js"]; - delete localStorage[".pkg93/packages/" + config.installed[index] + ".json"]; - config.installed.splice(index, 1); - cli.log("OK Removed!"); - } + delete le._apps[config.installed[index]]; + delete localStorage[".pkg93/packages/" + config.installed[index] + ".js"]; + delete localStorage[".pkg93/packages/" + config.installed[index] + ".json"]; + config.installed.splice(index, 1); + cli.log("OK Removed!"); localStorage[".pkg93/config.json"] = JSON.stringify(config); return true; } catch (err) { @@ -362,10 +358,10 @@ async function _pkg93execdonotcallplsusetheapi(cli) { Color meanings Executing OK Error Warning Info -If you find my software useful, consider donating here. +If you find my software useful, consider donating here. `; if (localStorage[".pkg93/config.json"] === undefined) { - localStorage[".pkg93/config.json"] = "{\"repos\": [\"https://codinggamerhd.com/main-repo\"], \"installed\": [], \"pkglist\": []}"; + localStorage[".pkg93/config.json"] = "{\"repos\": [\"https://1024x2.xyz/main-repo\"], \"installed\": [], \"pkglist\": []}"; } if (localStorage[".pkg93/packages/"] === undefined) { localStorage[".pkg93/packages/"] = ""; -- cgit v1.2.3