diff --git a/js/account/inventory.js b/js/account/inventory.js index 2766fdb..59ac829 100755 --- a/js/account/inventory.js +++ b/js/account/inventory.js @@ -6,6 +6,8 @@ Username = window.location.pathname.split('/')[2]; let UserID; let ItemGrid; +let _Utilities; + if (window.location.pathname.split('/')[3] === 'inventory') { !(async () => { UserID = (await (await fetch('https://api.polytoria.com/v1/users/find?username=' + Username )).json()).id; @@ -14,7 +16,10 @@ if (window.location.pathname.split('/')[3] === 'inventory') { /* Rewritten item wishlist function will take in the data with a parameter instead */ - chrome.storage.sync.get(['PolyPlus_Settings'], function(result){ + chrome.storage.sync.get(['PolyPlus_Settings'], async function(result){ + _Utilities = await import(chrome.runtime.getURL('resources/utils.js')); + _Utilities = _Utilities.default + Settings = result.PolyPlus_Settings const Nav = document.getElementsByClassName('nav-pills')[0]; @@ -67,6 +72,19 @@ if (window.location.pathname.split('/')[3] === 'inventory') { }); CollectibleNav.children[0].classList.add('active'); + let HoardedCard = document.createElement('li'); + HoardedCard.classList.add('nav-item'); + HoardedCard.classList.add('text-center'); + HoardedCard.innerHTML = ` +