From 4a6a65c174b4ff2e7097af4354fda948028656fb Mon Sep 17 00:00:00 2001 From: matt burnett Date: Thu, 29 Sep 2022 11:36:45 -0400 Subject: [PATCH] don't code in a rush --- package.json | 2 +- src/module.json | 8 ++++---- src/module/PlayerList.ts | 4 ++-- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/package.json b/package.json index ad9b0ad..a6319be 100644 --- a/package.json +++ b/package.json @@ -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", diff --git a/src/module.json b/src/module.json index 8bbdad0..b3a40f4 100644 --- a/src/module.json +++ b/src/module.json @@ -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": [ { @@ -13,10 +13,10 @@ ], "scripts": [], "esmodules": [ - "logger-xNbno61MsPqc.js" + "logger-WjZxHTR42mCD.js" ], "styles": [ - "logger-xNbno61MsPqc.css" + "logger-WjZxHTR42mCD.css" ], "packs": [], "languages": [ @@ -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", diff --git a/src/module/PlayerList.ts b/src/module/PlayerList.ts index fe91a25..9a1d11c 100644 --- a/src/module/PlayerList.ts +++ b/src/module/PlayerList.ts @@ -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')) }