diff --git a/css/popup.css b/css/popup.css
index ad29b40..3f643ff 100644
--- a/css/popup.css
+++ b/css/popup.css
@@ -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;
}
diff --git a/html/changelog.html b/html/changelog.html
index 0188404..fd83f9f 100644
--- a/html/changelog.html
+++ b/html/changelog.html
@@ -1,3 +1,21 @@
+
diff --git a/manifest.json b/manifest.json
index d98aa6b..e614886 100644
--- a/manifest.json
+++ b/manifest.json
@@ -18,7 +18,7 @@
},
{
"matches": ["https://csfloat.com/*", "https://csgofloat.com/*"],
- "js": ["js/Injectionhandler.js"],
+ "js": ["js/injectionhandler.js"],
"run_at": "document_start"
}
],
diff --git a/manifest_firefox.json b/manifest_firefox.json
index 82567db..50e9d01 100644
--- a/manifest_firefox.json
+++ b/manifest_firefox.json
@@ -17,7 +17,7 @@
},
{
"matches": ["https://csfloat.com/*", "https://csgofloat.com/*"],
- "js": ["js/Injectionhandler.js"],
+ "js": ["js/injectionhandler.js"],
"run_at": "document_start"
}
],
diff --git a/src/content_script.ts b/src/content_script.ts
index 4d463aa..ed61972 100644
--- a/src/content_script.ts
+++ b/src/content_script.ts
@@ -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';
@@ -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);
diff --git a/webpack/webpack.common.js b/webpack/webpack.common.js
index 2174885..fb8f200 100644
--- a/webpack/webpack.common.js
+++ b/webpack/webpack.common.js
@@ -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"),