Skip to content
This repository has been archived by the owner on Jun 4, 2024. It is now read-only.

Commit

Permalink
don't code in a rush
Browse files Browse the repository at this point in the history
  • Loading branch information
mawburn committed Sep 29, 2022
1 parent cb7680a commit 4a6a65c
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"private": true,
"name": "user-latency",
"version": "1.3.4",
"version": "1.3.6",
"description": "Display average latency in user list.",
"scripts": {
"clean": "rimraf dist module.zip",
Expand Down
8 changes: 4 additions & 4 deletions src/module.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "user-latency",
"title": "User Latency",
"description": "Display average latency for users.",
"version": "1.3.4",
"version": "1.3.6",
"author": "hypnoCode",
"authors": [
{
Expand All @@ -13,10 +13,10 @@
],
"scripts": [],
"esmodules": [
"logger-xNbno61MsPqc.js"
"logger-WjZxHTR42mCD.js"
],
"styles": [
"logger-xNbno61MsPqc.css"
"logger-WjZxHTR42mCD.css"
],
"packs": [],
"languages": [
Expand Down Expand Up @@ -44,7 +44,7 @@
"socket": true,
"url": "https://github.com/mawburn/foundry-user-latency",
"manifest": "https://raw.githubusercontent.com/mawburn/foundry-user-latency/main/src/module.json",
"download": "https://github.com/mawburn/foundry-user-latency/releases/download/v1.3.4/module.zip",
"download": "https://github.com/mawburn/foundry-user-latency/releases/download/v1.3.6/module.zip",
"license": "GNU AGPLv3",
"readme": "https://github.com/mawburn/foundry-user-latency/blob/main/README.md",
"bugs": "https://github.com/mawburn/foundry-user-latency/issues",
Expand Down
4 changes: 2 additions & 2 deletions src/module/PlayerList.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,11 @@ export class PlayerList {

updateLatencyText = (playerId: string) => {
const playerLatency = this.playerLatencyTimes[playerId]
const showLatency = (game as Game).settings.get(MODULE_NAME, 'showLatency')
const hideLatency = (game as Game).settings.get(MODULE_NAME, 'hideLatency')
const elmId = this.getId(playerId)
let elm = document.getElementById(elmId) as HTMLSpanElement

if (!playerLatency || !showLatency) {
if (!playerLatency || hideLatency) {
if (elm) {
elm.classList.add(this.getClass('hidden'))
}
Expand Down

0 comments on commit 4a6a65c

Please sign in to comment.