fix: fix debug page not showing storage in bytes (missing functionality)
This commit is contained in:
parent
183c49891d
commit
339c81e7a5
1 changed files with 6 additions and 0 deletions
|
|
@ -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();
|
||||
})
|
||||
});
|
||||
})
|
||||
})
|
||||
});
|
||||
|
|
|
|||
Reference in a new issue