fix: réparer les contrôles du combat tracker et la pause (v14)

This commit is contained in:
2026-08-01 21:33:38 +02:00
parent df852f17d1
commit 6ce51ed8cf
2 changed files with 21 additions and 21 deletions
+2 -2
View File
@@ -69,7 +69,7 @@ export const registerHooks = function () {
});
// changement de la pause
Hooks.on("renderGamePause", async function (element) {
Hooks.on("renderGamePause", async function (app, element) {
const pauseEl = element ?? document.getElementById("pause");
if (!pauseEl || pauseEl.className !== "paused") return;
pauseEl.querySelectorAll("img").forEach(img => {
@@ -101,7 +101,7 @@ export const registerHooks = function () {
title: game.i18n.localize("VERMINE.RollTool"),
icon: 'fas fa-dice-d10',
button: true,
onClick() {
onChange() {
RollDialog.create().then(d => d.render(true));
}
};