Skip to content

Commit 7a1e621

Browse files
Code cleanup.
1 parent 0709b11 commit 7a1e621

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

extension/scripts/features/cooldown-end-times/ttCooldownEndTimes.js

+1-3
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
"use strict";
22

33
(async () => {
4-
const feature = featureManager.registerFeature(
4+
featureManager.registerFeature(
55
"Cooldown End Times",
66
"sidebar",
77
() => settings.pages.sidebar.cooldownEndTimes,
@@ -14,11 +14,9 @@
1414
null
1515
);
1616

17-
const iconRegex = /1[97]|39|4\d|5[0-3]/m;
1817
async function addEndTimes() {
1918
const statusIcons = await requireElement("#sidebarroot [class*='status-icons__']");
2019
statusIcons.addEventListener("mouseover", listener);
21-
let tooltipPortal;
2220

2321
async function listener(event) {
2422
if (!event.target.closest("li")?.matches("[class*='icon']")) return;

extension/scripts/features/opened-supply-pack-value/ttOpenedSupplyPackValue.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
if (params.get("XID") === reqXID || isDrugPackUseRequest(params)) {
4242
const totalOpenedValue = json?.items?.itemAppear?.reduce(
4343
(totalValue, item) =>
44-
(totalValue += item.isMoney ? item.moneyGain.substring(1).getNumber() : torndata.items[item.ID].market_value * item.qty),
44+
totalValue + item.isMoney ? item.moneyGain.substring(1).getNumber() : torndata.items[item.ID].market_value * item.qty,
4545
0
4646
);
4747

0 commit comments

Comments
 (0)