Skip to content

Commit

Permalink
Misc fixes.
Browse files Browse the repository at this point in the history
Fix notifications for messages in background script.
Fix trade timer removal during cleanup, when there is no trade
chat timer.
  • Loading branch information
Sashank999 committed Nov 13, 2023
1 parent 57dc602 commit ffe81b2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion extension/scripts/background.js
Original file line number Diff line number Diff line change
Expand Up @@ -607,7 +607,7 @@ async function updateUserdata() {
let message = `${messages.last().title} - by ${messages.last().name}`;
if (messages.length > 1) message += `\n(and ${messages.length - 1} more message${messages.length > 2 ? "s" : ""})`;

notifications.events.combined = newNotification(`New Message${applyPlural(messages.length)}`, message, LINKS.messages);
notifications.messages.combined = newNotification(`New Message${applyPlural(messages.length)}`, message, LINKS.messages);
}
}

Expand Down
2 changes: 1 addition & 1 deletion extension/scripts/features/trade-timer/ttTradeTimer.js
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@
}

function cleanup() {
timer.remove();
timer?.remove();
timer = null;

const tradeChat = getTradeChat();
Expand Down

0 comments on commit ffe81b2

Please sign in to comment.