Remove also JS-rendered unauthorized-email-in-newsletter notice
[MAILPOET-2805]
This commit is contained in:
@@ -58,6 +58,10 @@ const removeUnauthorizedEmailNotices = () => {
|
|||||||
if (unauthorizedEmailInNewsletterNotice) {
|
if (unauthorizedEmailInNewsletterNotice) {
|
||||||
unauthorizedEmailInNewsletterNotice.remove();
|
unauthorizedEmailInNewsletterNotice.remove();
|
||||||
}
|
}
|
||||||
|
const unauthorizedEmailInNewsletterDynamicNotice = document.querySelector('[data-id="mailpoet_authorization_error"]');
|
||||||
|
if (unauthorizedEmailInNewsletterDynamicNotice) {
|
||||||
|
unauthorizedEmailInNewsletterDynamicNotice.remove();
|
||||||
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
type Props = {
|
type Props = {
|
||||||
|
Reference in New Issue
Block a user