From e3ad5be5ecbc76322ac5da09d223aea53e163756 Mon Sep 17 00:00:00 2001
From: Unknown
Date: Fri, 20 Apr 2018 23:12:17 +0100
Subject: cleanups
---
pkg93.js | 22 +++++++++++-----------
1 file 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("WARN 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("SRCH " + 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("ERR 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 = `pkg93 ${pkg93.version}
+ 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 = `pkg93 ${pkg93.version}
Usage: pkg93 [command]
List of Commands
--
cgit v1.2.3