mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-05 08:59:14 +08:00
Use innerHTML
to clear element inner content
This commit is contained in:
parent
0ac3dae104
commit
162a0886b7
1 changed files with 1 additions and 3 deletions
|
@ -77,9 +77,7 @@ class ErrorHandler {
|
|||
return;
|
||||
}
|
||||
|
||||
while( this.messagesList.firstChild ){
|
||||
this.messagesList.removeChild( this.messagesList.firstChild );
|
||||
}
|
||||
this.messagesList.innerHTML = '';
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue