Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Post merge fixes #366

Merged
merged 2 commits into from
Aug 4, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions js/background/background.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion js/content/store.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down