Skip to content

Commit

Permalink
release 1.21.1
Browse files Browse the repository at this point in the history
  • Loading branch information
gergelyszabo94 committed Nov 21, 2019
1 parent cce97b0 commit 0d4ae7d
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 18 deletions.
35 changes: 19 additions & 16 deletions extension/chrome/js/content_scripts/steam/inventory.js
Original file line number Diff line number Diff line change
Expand Up @@ -459,10 +459,11 @@ function addFunctionBar(){
updateSelectedItemsSummary();
event.target.classList.remove('selectionActive');

if (isOwnInventory()) {
document.getElementById('massListing').classList.add('hidden');
document.getElementById('listingTable').querySelector('tbody').innerHTML = '';
}
// hidden for release 1.21.1
// if (isOwnInventory()) {
// document.getElementById('massListing').classList.add('hidden');
// document.getElementById('listingTable').querySelector('tbody').innerHTML = '';
// }
document.body.removeEventListener('click', listenSelectClicks, false);
}
else{
Expand All @@ -474,7 +475,8 @@ function addFunctionBar(){

document.body.addEventListener('click', listenSelectClicks, false);
event.target.classList.add("selectionActive");
if (isOwnInventory()) document.getElementById('massListing').classList.remove('hidden');
// hidden for release 1.21.1
// if (isOwnInventory()) document.getElementById('massListing').classList.remove('hidden');
}
});

Expand Down Expand Up @@ -506,17 +508,18 @@ function updateSelectedItemsSummary(){
selectedItems.forEach(itemElement => {
let item = getItemByAssetID(items, getAssetIDOfElement(itemElement));
selectedTotal += parseFloat(item.price.price);

if (item.marketable === 1) {
let listingRow = getListingRowByAssetID(item.assetid);

if (listingRow === null) {
addListingRow(item);
addStartingAtAndQuickSellPrice(item);
}
}
// hidden for release 1.21.1
// if (item.marketable === 1) {
// let listingRow = getListingRowByAssetID(item.assetid);
//
// if (listingRow === null) {
// addListingRow(item);
// addStartingAtAndQuickSellPrice(item);
// }
// }
});
removeUnselectedItemsFromTable();
// hidden for release 1.21.1
// removeUnselectedItemsFromTable();

chrome.storage.local.get('currency', (result) =>{
document.getElementById('selectedTotalValue').innerText = prettyPrintPrice(result.currency, selectedTotal);
Expand Down Expand Up @@ -685,7 +688,7 @@ function hideFloatBars(){

function findElementByAssetID(assetID){ return document.getElementById(`730_2_${assetID}`)}

function addFloatIndicatorsToPage(page){
function addFloatIndicatorsToPage(page) {
chrome.storage.local.get('autoFloatInventory', (result) => {
if (result.autoFloatInventory) {
page.querySelectorAll('.item.app730.context2').forEach(itemElement => {
Expand Down
2 changes: 1 addition & 1 deletion extension/chrome/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"manifest_version": 2,
"name": "__MSG_application_title__",
"short_name": "CSGO Trader",
"version": "1.21",
"version": "1.21.1",
"default_locale": "en",
"description": "__MSG_application_description__",
"homepage_url": "https://csgotrader.app/",
Expand Down
2 changes: 1 addition & 1 deletion extension/firefox/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"manifest_version": 2,
"name": "__MSG_application_title__",
"short_name": "CSGO Trader",
"version": "1.21",
"version": "1.21.1",
"default_locale": "en",
"description": "__MSG_application_description__",
"homepage_url": "https://csgotrader.app/",
Expand Down
7 changes: 7 additions & 0 deletions site/changelog/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,13 @@
</div>
</nav>
<h1>Changelog</h1>
<div class="buildingBlock">
<h2>Version 1.21.1 - 2019-11-21</h2>
<ul>
<li>Fixed a bug where undefined would appear instead of the actual currency sign when Australian Dollars was the selected currency</li>
<li>Fixed a bug where the extension would not function if the inventory contained an Agent skin (new item type)</li>
</ul>
</div>
<div class="buildingBlock">
<h2>Version 1.21 - 2019-11-17</h2>
<ul>
Expand Down

0 comments on commit 0d4ae7d

Please sign in to comment.