Fix logo
This commit is contained in:
@@ -167,12 +167,3 @@ Hooks.on("renderChatMessageHTML", (message, html) => {
|
||||
// Inject Free Roll bar into the chat sidebar
|
||||
Hooks.on("renderChatLog", (_chatLog, html) => injectFreeRollBar(_chatLog, html))
|
||||
|
||||
// Replace the Foundry pause image with the system logo
|
||||
function _applyPauseLogo() {
|
||||
const img = document.querySelector("#pause img")
|
||||
if (!img) return
|
||||
img.src = "systems/fvtt-oath-hammer/assets/logos/oath_hammer_pause_logo.webp"
|
||||
img.classList.remove("fa-spin")
|
||||
}
|
||||
Hooks.on("pauseGame", (paused) => { if (paused) setTimeout(_applyPauseLogo, 50) })
|
||||
Hooks.on("ready", () => { if (game.paused) _applyPauseLogo() })
|
||||
|
||||
Reference in New Issue
Block a user