From 183c49891d87a4a57b36e0944540a91983397f42 Mon Sep 17 00:00:00 2001 From: Index Date: Mon, 1 Jul 2024 19:46:49 -0500 Subject: [PATCH] minor: make dev page incorporate local storage for byte size --- js/extra-pages.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/js/extra-pages.js b/js/extra-pages.js index c5a5990..2c4dc25 100644 --- a/js/extra-pages.js +++ b/js/extra-pages.js @@ -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) { - console.log(bytes) - document.getElementById('data-size').innerText = bytes.toLocaleString(); + 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(); + }) }); }); } else if (window.location.pathname.split('/')[3] === 'polyplus' && window.location.hash === '#debug') {