Skip to content

Commit

Permalink
Update chat-tabs.js
Browse files Browse the repository at this point in the history
  • Loading branch information
mclemente committed Dec 20, 2023
1 parent 48dc04a commit 971a482
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion chat-tabs.js
Original file line number Diff line number Diff line change
Expand Up @@ -549,7 +549,7 @@ function sendToDiscord(webhook, body) {
function convertPolyglotMessage(chatMessage) {
const lang = chatMessage.getFlag("polyglot", "language");
let message = chatMessage.content;
if (lang !== game.polyglot.defaultLanguage) {
if (lang && lang !== game.polyglot.defaultLanguage) {
message = game.polyglot.languages[lang].label + ": ||" + message + "||";
}
return message;
Expand Down

0 comments on commit 971a482

Please sign in to comment.