Skip to content

Commit

Permalink
Update hooks.js
Browse files Browse the repository at this point in the history
  • Loading branch information
mclemente committed Jan 28, 2024
1 parent 677653b commit b2b8fe8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/module/hooks.js
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ export default class PolyglotHooks {

if (game.polyglot.languageProvider.requiresReady && !game.ready) {
Hooks.once("polyglot.languageProvider.ready", async () => {
await game.polyglot.renderChatMessage(message, html, data);
await PolyglotHooks.renderChatMessage(message, html, data);
});
return;
}
Expand All @@ -128,7 +128,7 @@ export default class PolyglotHooks {
}
const forceTranslation = message.polyglot_force || !message.polyglot_unknown;
const messageContent = html.find(".message-content");
const innerText = messageContent.text();
const innerText = messageContent.text().trim();

const content = $("<div>")
.addClass("polyglot-original-text")
Expand Down

0 comments on commit b2b8fe8

Please sign in to comment.