From 339c81e7a57b9029f9d2de392a0136cf0ea80d9f Mon Sep 17 00:00:00 2001 From: Index Date: Mon, 1 Jul 2024 19:48:20 -0500 Subject: [PATCH] fix: fix debug page not showing storage in bytes (missing functionality) --- js/extra-pages.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/js/extra-pages.js b/js/extra-pages.js index 2c4dc25..e9109bf 100644 --- a/js/extra-pages.js +++ b/js/extra-pages.js @@ -323,6 +323,12 @@ if (window.location.pathname.split('/')[3] === 'polyplus' && window.location.has `; + + 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(); + }) + }); }) }) });