Only do validation if MSS is active
[MAILPOET-3857]
This commit is contained in:
@@ -40,9 +40,11 @@ function validateNewsletter(newsletter) {
|
||||
return MailPoet.I18n.t('newsletterIsEmpty');
|
||||
}
|
||||
}
|
||||
// todo only check this if MSS is active
|
||||
if (body.indexOf('[link:subscription_unsubscribe_url]') < 0
|
||||
&& body.indexOf('[link:subscription_unsubscribe]') < 0
|
||||
|
||||
if (
|
||||
window.mailpoet_mss_active
|
||||
&& (body.indexOf('[link:subscription_unsubscribe_url]') < 0)
|
||||
&& (body.indexOf('[link:subscription_unsubscribe]') < 0)
|
||||
) {
|
||||
return MailPoet.I18n.t('unsubscribeLinkMissing');
|
||||
}
|
||||
|
Reference in New Issue
Block a user