aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorUnknown2018-04-20 23:12:17 +0100
committerUnknown2018-04-20 23:12:17 +0100
commite3ad5be5ecbc76322ac5da09d223aea53e163756 (patch)
treea8e8a5e11411431bc2bd311b44cfa9006fb612df
parentfec984121326b342032e137bba1fe74acd8a5c11 (diff)
cleanups
-rw-r--r--pkg93.js22
1 files changed, 11 insertions, 11 deletions
diff --git a/pkg93.js b/pkg93.js
index 2990258..9a50de0 100644
--- a/pkg93.js
+++ b/pkg93.js
@@ -24,8 +24,8 @@ var pkg93 = {
}
},
pull: function() {
- var config = pkg93.getConfig(),
- request = new XMLHttpRequest();
+ var config = pkg93.getConfig();
+ var request = new XMLHttpRequest();
$log("<b><span style='color:#ff0'>WARN</span></b> Windows93 may lag while getting packages.\n This is a normal thing.");
config.pkglist = [];
config.repos.forEach(function (source) {
@@ -52,8 +52,8 @@ var pkg93 = {
localStorage[".pkg93/config.json"] = JSON.stringify(config);
},
get: function(pkg) {
- var config = pkg93.getConfig(),
- request = new XMLHttpRequest();
+ var config = pkg93.getConfig();
+ var request = new XMLHttpRequest();
$log("<b><span style='color:#f0f'>SRCH</span></b> " + pkg);
var index = config.pkglist.findIndex(function(string) {
return string.split("@")[0] == pkg;
@@ -104,8 +104,8 @@ var pkg93 = {
},
rm: function(pkg) {
var config = pkg93.getConfig(),
- request = new XMLHttpRequest(),
- index = config.installed.indexOf(pkg);
+ var request = new XMLHttpRequest(),
+ var index = config.installed.indexOf(pkg);
if (index < 0) {
$log("<b><span style='color:#f00'>ERR</span></b> Not found.");
return false;
@@ -138,8 +138,8 @@ var pkg93 = {
}
},
pkgInfo: function (pkg, onlineOnly) {
- var config = pkg93.getConfig(),
- request = new XMLHttpRequest();
+ var config = pkg93.getConfig
+ var request = new XMLHttpRequest();
try {
if (localStorage[".pkg93/packages/" + pkg + ".json"] && !onlineOnly) {
return JSON.parse(localStorage[".pkg93/packages/" + pkg + ".json"]);
@@ -176,9 +176,9 @@ if (localStorage[".pkg93/userscript"] && localStorage["desktop/Load pkg93.lnk42"
le._apps.pkg93 = {
exec: function() {
pkg93.version = "v1.2.1";
- const protected = ["3d","acid","acidbox","ansi","anthology","arena93","bananamp","base64","bytebeat","calc","castlegafa","catex","cd","clear","clearhist","clippy","code","contact","crazy","defrag","dmg","do a barrel roll","doctor","download","find","font","format","fullscreen","fx","gameoflife","glitch","global thermonuclear war","gravity","hampster","hello","help","hexed","history","hl3","hydra","ie6","iframe","img","info","js","key","killall","layer","lenna","lisa","ls","manifesto","marburg","messenger","mines","necronomicoin","pd","piskel","pkg93","pony","potato","progressquest","pwd","reboot","robby","rotate","shutdown","skifree","solitude","speech","starwars","superplayer","takethis","terminal","textarea","tree","trollbox","vega","virtualpc","vm","wat","whatif","whois","win","zkype"],
- args = this.arg.arguments,
- help = `<b>pkg93 ${pkg93.version}</b>
+ var protected = ["3d","acid","acidbox","ansi","anthology","arena93","bananamp","base64","bytebeat","calc","castlegafa","catex","cd","clear","clearhist","clippy","code","contact","crazy","defrag","dmg","do a barrel roll","doctor","download","find","font","format","fullscreen","fx","gameoflife","glitch","global thermonuclear war","gravity","hampster","hello","help","hexed","history","hl3","hydra","ie6","iframe","img","info","js","key","killall","layer","lenna","lisa","ls","manifesto","marburg","messenger","mines","necronomicoin","pd","piskel","pkg93","pony","potato","progressquest","pwd","reboot","robby","rotate","shutdown","skifree","solitude","speech","starwars","superplayer","takethis","terminal","textarea","tree","trollbox","vega","virtualpc","vm","wat","whatif","whois","win","zkype"];
+ var args = this.arg.arguments;
+ var help = `<b>pkg93 ${pkg93.version}</b>
<b>Usage:</b> pkg93 [command]
<b><u>List of Commands</u></b>