* Increase selector specificity

* Include exception for some WC pages

Co-authored-by: Paulo Iankoski <me@wpdev.com.br>
This commit is contained in:
Paulo Iankoski 2020-05-06 20:17:50 -03:00 committed by GitHub
parent 4f48ae9fb7
commit 015fc89dbd
1 changed files with 1 additions and 1 deletions

View File

@ -49,7 +49,7 @@ if ( appRoot ) {
// Render notices just above the WP content div.
const wpBody = document.getElementById( 'wpbody-content' );
const wrap = wpBody.querySelector( '.wrap' );
const wrap = wpBody.querySelector( '.wrap.woocommerce' ) || wpBody.querySelector( '[class="wrap"]' );
const noticeContainer = document.createElement( 'div' );
render(