resolved an issue with the button not working

This commit is contained in:
CPTN Cosmo 2025-08-31 23:29:05 +02:00
parent 088ea79995
commit 64e3cc4f05
2 changed files with 10 additions and 3 deletions

View file

@ -61,7 +61,14 @@ function addDRButton(html) {
await runDRCommand();
});
container.appendChild(btn); // fallback if fewer than 4 buttons
// Append the button at the end of the roll-privacy div
const rollPrivacyDiv = container.querySelector("#roll-privacy");
if (rollPrivacyDiv) {
rollPrivacyDiv.appendChild(btn);
} else {
container.appendChild(btn); // fallback if the div doesn't exist
}
} catch (err) {
console.error("DR Quick Button | addDRButton error:", err);
}