From 90dab88d0eb4a479b3b541704c2e2ebad341820f Mon Sep 17 00:00:00 2001 From: Index Date: Sun, 14 Jul 2024 16:36:34 -0500 Subject: [PATCH] feat: add "time played" feature to debug page --- js/extra-pages.js | 22 ++++++++++++++++++++-- 1 file changed, 20 insertions(+), 2 deletions(-) diff --git a/js/extra-pages.js b/js/extra-pages.js index 298bd63..dc63b46 100644 --- a/js/extra-pages.js +++ b/js/extra-pages.js @@ -242,7 +242,7 @@ if (window.location.pathname.split('/')[3] === 'polyplus' && window.location.has }); } else if (window.location.pathname.split('/')[3] === 'polyplus' && window.location.hash === '#debug') { document.addEventListener('DOMContentLoaded', function () { - chrome.storage.sync.get(['PolyPlus_Settings', 'PolyPlus_PinnedGames', 'PolyPlus_BestFriends', 'PolyPlus_ItemWishlist', 'PolyPlus_AvatarSandboxOutfits'], function(sync) { + chrome.storage.sync.get(['PolyPlus_Settings', 'PolyPlus_PinnedGames', 'PolyPlus_BestFriends', 'PolyPlus_ItemWishlist', 'PolyPlus_AvatarSandboxOutfits', 'PolyPlus_TimePlayed'], function(sync) { chrome.storage.local.get(['PolyPlus_InventoryCache'], function(local){ document.querySelector('#main-content .container').innerHTML = `