Skip to content

Commit

Permalink
Update hooks.js
Browse files Browse the repository at this point in the history
  • Loading branch information
mclemente committed Oct 13, 2023
1 parent 42559aa commit 26413d8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/module/hooks.js
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ export default class PolyglotHooks {
let color = "red";
if ((isGM && !runifyGM) || known) color = "green";
else if (understood) color = "blue";
const title = isGM || known || understood ? `data-tooltip="${language}" data-tooltip-direction="LEFT"` : "";
const title = isGM || known || game.polyglot._isTruespeech(lang) ? `data-tooltip="${language}" data-tooltip-direction="LEFT"` : "";
const clickable = isGM && (runifyGM || !displayTranslated);
const button = $(`<a class="button polyglot-message-language ${clickable ? "" : "unclickable"}" ${title}>
<i class="fas fa-globe" style="color:${color}"></i>
Expand Down

0 comments on commit 26413d8

Please sign in to comment.