fix: fix debug page not showing storage in bytes (missing functionality)

This commit is contained in:
Index 2024-07-01 19:48:20 -05:00
parent 183c49891d
commit 339c81e7a5

View file

@ -323,6 +323,12 @@ if (window.location.pathname.split('/')[3] === 'polyplus' && window.location.has
</div>
</div>
`;
chrome.storage.sync.getBytesInUse(['PolyPlus_Settings', 'PolyPlus_PinnedGames', 'PolyPlus_ItemWishlist'], function (sync) {
chrome.storage.local.getBytesInUse(['PolyPlus_InventoryCache'], function(local){
document.getElementById('data-size').innerText = (sync + local).toLocaleString();
})
});
})
})
});