fixed my tweak to the pause logo for non-translated languages

This commit is contained in:
TheLastScrub
2025-05-17 21:39:30 -07:00
parent 32af07ef43
commit fcc6d2288a
+5
View File
@@ -188,6 +188,11 @@ Hooks.on("renderGamePause", function (_, html, options) {
try {
let gamePausedOverrideText = game.i18n.translations.DG.MissionPaused;
if (typeof gamePausedOverrideText == "undefined") {
return;
}
html.querySelector("figcaption").textContent = gamePausedOverrideText;
html.querySelector("img").classList.remove("fa-spin"); // I don't like the logo spinning personally
} catch {}