resolved an issue with the button not working
This commit is contained in:
parent
088ea79995
commit
64e3cc4f05
2 changed files with 10 additions and 3 deletions
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue