minor: make dev page incorporate local storage for byte size
This commit is contained in:
parent
5167016103
commit
183c49891d
1 changed files with 4 additions and 3 deletions
|
|
@ -234,9 +234,10 @@ if (window.location.pathname.split('/')[3] === 'polyplus' && window.location.has
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
chrome.storage.sync.getBytesInUse(['PolyPlus_Settings', 'PolyPlus_PinnedGames', 'PolyPlus_BestFriends', 'PolyPlus_ItemWishlist'], function (bytes) {
|
chrome.storage.sync.getBytesInUse(['PolyPlus_Settings', 'PolyPlus_PinnedGames', 'PolyPlus_ItemWishlist'], function (sync) {
|
||||||
console.log(bytes)
|
chrome.storage.local.getBytesInUse(['PolyPlus_InventoryCache'], function(local){
|
||||||
document.getElementById('data-size').innerText = bytes.toLocaleString();
|
document.getElementById('data-size').innerText = (sync + local).toLocaleString();
|
||||||
|
})
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
} else if (window.location.pathname.split('/')[3] === 'polyplus' && window.location.hash === '#debug') {
|
} else if (window.location.pathname.split('/')[3] === 'polyplus' && window.location.hash === '#debug') {
|
||||||
|
|
|
||||||
Reference in a new issue