diff --git a/scripts/dnd5e-character-monitor.js b/scripts/dnd5e-character-monitor.js index b7af279..8d758f3 100644 --- a/scripts/dnd5e-character-monitor.js +++ b/scripts/dnd5e-character-monitor.js @@ -331,8 +331,9 @@ class CharacterMonitor { // If "showGMonly" setting enabled, whisper to all owners (this includes the GM). // Players may or may not actually see the message depending on the allowPlayerView setting. // Potentially change this to be depenent on setting if NPCs should be monitored (See health-monitor.js line 213) - const whisper = (game.settings.get(moduleName, "showGMonly") ? - game.users.filter(u => item.parent.testUserPermission(u, CONST.DOCUMENT_PERMISSION_LEVELS.OWNER)).map(u => u.id) : null); + const whisper = game.settings.get(moduleName, "showGMonly") + ? game.users.filter(u => item.parent.testUserPermission(u, CONST.DOCUMENT_PERMISSION_LEVELS.OWNER)).map(u => u.id) + : null; // Prepare common content for handlebars templates const hbsData = {