diff --git a/js/background/background.js b/js/background/background.js index d7b675925..09dbb1ee9 100644 --- a/js/background/background.js +++ b/js/background/background.js @@ -421,8 +421,8 @@ class SteamCommunity extends Api { result = await SteamCommunity.getEndpoint(`/inventory/${login.steamId}/753/${contextId}`, thisParams); if (result && result.success) { if (!data) data = { "assets": [], "descriptions": [] }; - data.assets = data.assets.concat(result.assets); - data.descriptions = data.descriptions.concat(result.descriptions); + if (result.assets) data.assets = data.assets.concat(result.assets); + if (result.descriptions) data.descriptions = data.descriptions.concat(); } last_assetid = result.last_assetid; } while (result.more_items); diff --git a/js/content/store.js b/js/content/store.js index 121766212..22127d5de 100644 --- a/js/content/store.js +++ b/js/content/store.js @@ -32,7 +32,7 @@ class Customizer { let elements; if (typeof targets === "string") { - elements = document.querySelectorAll(targets); + elements = Array.from(document.querySelectorAll(targets)); } else if (targets instanceof NodeList) { elements = Array.from(targets); } else {