Skip to content

Commit

Permalink
Release version 1.2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
GODrums committed Aug 20, 2023
1 parent 8801b58 commit 2c6642e
Show file tree
Hide file tree
Showing 6 changed files with 32 additions and 9 deletions.
2 changes: 2 additions & 0 deletions css/popup.css
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,8 @@ footer p {
background: var(--color-background, #303030);
overflow-y: scroll;
overflow-x: hidden;
scrollbar-color: var(--color-accent, #ff5722) var(--color-background, #303030);
scrollbar-width: thin;
height: 490px;
}

Expand Down
18 changes: 18 additions & 0 deletions html/changelog.html
Original file line number Diff line number Diff line change
@@ -1,3 +1,21 @@
<div class="Group">
<div class="VersionHeader">1.1.1</div>
<div class="VersionBox">
<p class="VersionSubHeader">
What's new?
</p>
<ul class="VersionText">
<li><b>FEATURE:</b> Show listing age → Show the listing age in the listing card. The two available options determine the position of the text. This setting is per default turned off to prevent cluttering in standard use cases.</li>
<li><b>BUG-FIXING:</b> Hopefully any isses with case-sensitive OS are fixed now by reverting any capitalization in file names. The original issue is explained below. </li>
</ul>
<p class="VersionSubHeader">
What's wrong?
</p>
<ul class="VersionText">
<li>Since version 1.1.0 case-sensitive OS (e.g. Ubuntu, Android) did occasionally print errors due to the changed capitalization of file names. Non-case-sensitive OS (e.g. Windows) have not been influenced by this at all. Please send a report to our Discord channel for further debugging if this is the case for your system.</li>
</ul>
</div>
</div>
<div class="Group">
<div class="VersionHeader">1.1.0</div>
<div class="VersionBox">
Expand Down
2 changes: 1 addition & 1 deletion manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
},
{
"matches": ["https://csfloat.com/*", "https://csgofloat.com/*"],
"js": ["js/Injectionhandler.js"],
"js": ["js/injectionhandler.js"],
"run_at": "document_start"
}
],
Expand Down
2 changes: 1 addition & 1 deletion manifest_firefox.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
},
{
"matches": ["https://csfloat.com/*", "https://csgofloat.com/*"],
"js": ["js/Injectionhandler.js"],
"js": ["js/injectionhandler.js"],
"run_at": "document_start"
}
],
Expand Down
11 changes: 7 additions & 4 deletions src/content_script.ts
Original file line number Diff line number Diff line change
Expand Up @@ -242,9 +242,9 @@ async function adjustItem(container: Element, isPopout = false) {
}

async function addListingAge(item: FloatItem, container: Element, cachedItem: ListingData) {
let listingAge = document.createElement('div');
let listingAgeText = document.createElement('p');
let listingIcon = document.createElement('img');
const listingAge = document.createElement('div');
const listingAgeText = document.createElement('p');
const listingIcon = document.createElement('img');
listingAge.classList.add('betterfloat-listing-age');
listingAge.style.display = 'flex';
listingAge.style.alignItems = 'center';
Expand Down Expand Up @@ -289,7 +289,10 @@ async function addListingAge(item: FloatItem, container: Element, cachedItem: Li
outerContainer.style.display = 'flex';
listingAge.style.marginRight = '5px';
outerContainer.appendChild(listingAge);
outerContainer.appendChild(watchersContainer);
// if logged out, watchers are not displayed
if (watchersContainer) {
outerContainer.appendChild(watchersContainer);
}
let topRightContainer = container.querySelector('.top-right-container');
if (topRightContainer) {
topRightContainer.replaceChild(outerContainer, topRightContainer.firstChild);
Expand Down
6 changes: 3 additions & 3 deletions webpack/webpack.common.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ module.exports = {
background: path.join(srcDir, 'background.ts'),
content_script: path.join(srcDir, 'content_script.ts'),
inject: path.join(srcDir, 'inject.ts'),
injectionhandler: path.join(srcDir, 'Injectionhandler.ts'),
eventhandler: path.join(srcDir, 'Eventhandler.ts'),
mappinghandler: path.join(srcDir, 'Mappinghandler.ts'),
injectionhandler: path.join(srcDir, 'injectionhandler.ts'),
eventhandler: path.join(srcDir, 'eventhandler.ts'),
mappinghandler: path.join(srcDir, 'mappinghandler.ts'),
},
output: {
path: path.join(__dirname, "../dist/js"),
Expand Down

0 comments on commit 2c6642e

Please sign in to comment.