fix collectibles inventory tab page fetching

This commit is contained in:
Index 2024-06-27 16:20:17 -05:00
parent 37ad14a9be
commit ce3ebc99bb
3 changed files with 4 additions and 4 deletions

View file

@ -269,7 +269,7 @@ async function CollectibleCategory() {
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())
Collectibles.push(...PageResult.inventory.filter((x) => x.asset.isLimited === true))
}

View file

@ -214,7 +214,7 @@ function TryOnItems() {
const ItemThumbnail = document.getElementsByClassName('store-thumbnail')[0];
//const IFrame = document.getElementsByClassName('store-thumbnail-3d')[0]
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');
TryOnBtn.classList = 'btn btn-warning';

View file

@ -2,8 +2,8 @@
"manifest_version": 3,
"author": "Index",
"name": "Poly+",
"version": "1.21",
"version_name": "Pre-Release Build (v1.2.1)",
"version": "1.22",
"version_name": "Pre-Release Build (v1.2.2)",
"description": "Power-up your Polytoria experience with Poly+! Created by Index.",
"homepage_url": "https://polyplus.vercel.app/",
"permissions": ["storage", "contextMenus", "scripting", "alarms", "notifications"],