From ce3ebc99bb7b2c0b9c04f2006d06087467cfe274 Mon Sep 17 00:00:00 2001 From: Index Date: Thu, 27 Jun 2024 16:20:17 -0500 Subject: [PATCH] fix collectibles inventory tab page fetching --- js/account/inventory.js | 2 +- js/store/item-view.js | 2 +- manifest.json | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/js/account/inventory.js b/js/account/inventory.js index 4ec6d90..c2050e5 100755 --- a/js/account/inventory.js +++ b/js/account/inventory.js @@ -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)) } diff --git a/js/store/item-view.js b/js/store/item-view.js index a073e30..d8e8112 100755 --- a/js/store/item-view.js +++ b/js/store/item-view.js @@ -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'; diff --git a/manifest.json b/manifest.json index ad81aed..29fa3e7 100644 --- a/manifest.json +++ b/manifest.json @@ -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"],