Did something change today? my styling
Did something change today? my styling broke
4 Replies
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
im doing changes to the consent modal in a hacky way thats from the times when zaraz was first introduced, i should probably rework it. but currently i try to get the zaraz element by
This seems to have stopped working
(function() {
document.addEventListener("zarazConsentAPIReady", () => {
//zaraz.consent.modal = true
zaraz.consent.setAllCheckboxes(!0);
present()
})
present = function () {
// Define constant for shadowRoot
const modalShadowRoot = document.querySelector('.cf_modal').parentElement;
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
it seems like zarazConsentAPIReady now fires before the modal is availible
yep, if i delay present it works