From 492a895e13f4e79918432895ae86ba6b17086354 Mon Sep 17 00:00:00 2001 From: Index Date: Mon, 22 Jul 2024 08:44:01 -0500 Subject: [PATCH] feat: avatar sandbox type parity with avatar redesign --- js/account/avatar-sandbox.js | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/js/account/avatar-sandbox.js b/js/account/avatar-sandbox.js index 6b31bf7..ea76940 100644 --- a/js/account/avatar-sandbox.js +++ b/js/account/avatar-sandbox.js @@ -635,7 +635,7 @@ async function LoadItems() {
${item.name}
- ${ (item.creator.id || 1) === 1 ? (item.accessoryType !== undefined ? CleanAccessoryType(item.accessoryType) : item.type.substring(0, 1).toUpperCase()+item.type.substring(1)) : `by ${item.creator.name || "-"}` } + ${FormatTypeDisplay(item)} ${Cached.name} - ${ (Cached.creator.id || 1) === 1 ? (Cached.accessoryType !== undefined ? CleanAccessoryType(Cached.accessoryType) : Cached.type.substring(0, 1).toUpperCase()+Cached.type.substring(1)) : `by ${Cached.creator.name || "-"}` } + ${FormatTypeDisplay(Cached)} ' + item.creator.name + '' + } +} + chrome.storage.onChanged.addListener(function (changes, namespace) { if ('PolyPlus_AvatarSandboxOutfits' in changes) { chrome.storage.sync.get(['PolyPlus_AvatarSandboxOutfits'], function (result) {