Skip to content

Commit

Permalink
Code cleanup.
Browse files Browse the repository at this point in the history
  • Loading branch information
DeKleineKobini committed Dec 18, 2024
1 parent 0709b11 commit 7a1e621
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
"use strict";

(async () => {
const feature = featureManager.registerFeature(
featureManager.registerFeature(
"Cooldown End Times",
"sidebar",
() => settings.pages.sidebar.cooldownEndTimes,
Expand All @@ -14,11 +14,9 @@
null
);

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

async function listener(event) {
if (!event.target.closest("li")?.matches("[class*='icon']")) return;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
if (params.get("XID") === reqXID || isDrugPackUseRequest(params)) {
const totalOpenedValue = json?.items?.itemAppear?.reduce(
(totalValue, item) =>
(totalValue += item.isMoney ? item.moneyGain.substring(1).getNumber() : torndata.items[item.ID].market_value * item.qty),
totalValue + item.isMoney ? item.moneyGain.substring(1).getNumber() : torndata.items[item.ID].market_value * item.qty,
0
);

Expand Down

0 comments on commit 7a1e621

Please sign in to comment.