This commit is contained in:
Kelly Dwan 2018-07-30 13:41:14 -04:00 committed by GitHub
parent 727654ff3b
commit 9a73628689
1 changed files with 2 additions and 4 deletions

View File

@ -6,13 +6,11 @@ function wc_admin_register_script() {
// Are we displaying the full React app or just embedding the header on a classic screen? // Are we displaying the full React app or just embedding the header on a classic screen?
$screen_id = wc_admin_get_current_screen_id(); $screen_id = wc_admin_get_current_screen_id();
error_log( $screen_id );
if ( in_array( $screen_id, wc_admin_get_embed_enabled_screen_ids() ) ) { if ( in_array( $screen_id, wc_admin_get_embed_enabled_screen_ids() ) ) {
$js_entry = 'dist/embedded.js'; $js_entry = 'dist/embedded.js';
$css_entry = 'dist/css/embedded.css'; $css_entry = 'dist/css/embedded.css';
} else { } else {
$js_entry = 'dist/index.js'; $js_entry = 'dist/index.js';
$css_entry = 'dist/css/index.css'; $css_entry = 'dist/css/index.css';
} }