Skip to content
This repository has been archived by the owner on Sep 13, 2023. It is now read-only.

Commit

Permalink
fixed import
Browse files Browse the repository at this point in the history
  • Loading branch information
Segfault authored Mar 15, 2021
1 parent 4a9d4bd commit 8d34154
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/assets/js/rsg.js
Original file line number Diff line number Diff line change
Expand Up @@ -223,6 +223,8 @@
let skins = {};
let promises = {};

data = (!data.Skins) ? data : data.Skins;

if(!Array.isArray(data)) {
data = (!data.Skins) ? data : data.Skins;
for(var i in data) {
Expand Down Expand Up @@ -258,7 +260,6 @@
await sleep(SLEEP_TIME * SLEEP_MULTI);
}
a = 0;
console.log(promises);
for(var i in skins) {
output("Processing " + i + ". " + a++ + "/" + skincount + "% done.");
skins[i] = (await promises[i]).response.publishedfiledetails;
Expand Down

0 comments on commit 8d34154

Please sign in to comment.