fix collectibles inventory tab page fetching
This commit is contained in:
parent
37ad14a9be
commit
ce3ebc99bb
3 changed files with 4 additions and 4 deletions
|
|
@ -269,7 +269,7 @@ async function CollectibleCategory() {
|
||||||
InitialInventory.pages = 3
|
InitialInventory.pages = 3
|
||||||
}
|
}
|
||||||
|
|
||||||
for (let page = 2; i < InitialInventory.pages; i++) {
|
for (let page = 2; page < InitialInventory.pages; page++) {
|
||||||
const PageResult = (await (await fetch('https://api.polytoria.com/v1/users/' + UserID + '/inventory?type=' + type + '&limit=100&page=' + page)).json())
|
const PageResult = (await (await fetch('https://api.polytoria.com/v1/users/' + UserID + '/inventory?type=' + type + '&limit=100&page=' + page)).json())
|
||||||
Collectibles.push(...PageResult.inventory.filter((x) => x.asset.isLimited === true))
|
Collectibles.push(...PageResult.inventory.filter((x) => x.asset.isLimited === true))
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -214,7 +214,7 @@ function TryOnItems() {
|
||||||
const ItemThumbnail = document.getElementsByClassName('store-thumbnail')[0];
|
const ItemThumbnail = document.getElementsByClassName('store-thumbnail')[0];
|
||||||
//const IFrame = document.getElementsByClassName('store-thumbnail-3d')[0]
|
//const IFrame = document.getElementsByClassName('store-thumbnail-3d')[0]
|
||||||
const TryIFrame = document.createElement('iframe');
|
const TryIFrame = document.createElement('iframe');
|
||||||
TryIFrame.style = 'width: 100%; height: auto; aspect-ratio: 1; border-radius: 20px;';
|
TryIFrame.style = 'width: 100%; height: auto; aspect-ratio: 1; border-radius: 20px; background: #1e1e1e;';
|
||||||
|
|
||||||
const TryOnBtn = document.createElement('button');
|
const TryOnBtn = document.createElement('button');
|
||||||
TryOnBtn.classList = 'btn btn-warning';
|
TryOnBtn.classList = 'btn btn-warning';
|
||||||
|
|
|
||||||
|
|
@ -2,8 +2,8 @@
|
||||||
"manifest_version": 3,
|
"manifest_version": 3,
|
||||||
"author": "Index",
|
"author": "Index",
|
||||||
"name": "Poly+",
|
"name": "Poly+",
|
||||||
"version": "1.21",
|
"version": "1.22",
|
||||||
"version_name": "Pre-Release Build (v1.2.1)",
|
"version_name": "Pre-Release Build (v1.2.2)",
|
||||||
"description": "Power-up your Polytoria experience with Poly+! Created by Index.",
|
"description": "Power-up your Polytoria experience with Poly+! Created by Index.",
|
||||||
"homepage_url": "https://polyplus.vercel.app/",
|
"homepage_url": "https://polyplus.vercel.app/",
|
||||||
"permissions": ["storage", "contextMenus", "scripting", "alarms", "notifications"],
|
"permissions": ["storage", "contextMenus", "scripting", "alarms", "notifications"],
|
||||||
|
|
|
||||||
Reference in a new issue