move to error message

This commit is contained in:
David Remer 2020-07-16 13:17:46 +03:00
parent bfa148b753
commit ec199d2bfc

View file

@ -9,6 +9,7 @@ class ErrorHandler {
{
this.wrapper.classList.add('woocommerce-error');
this.wrapper.innerText = this.sanitize(text);
jQuery.scroll_to_notices(jQuery('.woocommerce-notices-wrapper'))
}
sanitize(text)