Skip to content
This repository has been archived by the owner on Nov 15, 2020. It is now read-only.

Commit

Permalink
Fixing issue with the assets not enqueueing properly
Browse files Browse the repository at this point in the history
  • Loading branch information
jasonbahl committed Jun 10, 2017
1 parent 26cf3ef commit c0e2a41
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion wp-graphiql.php
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ public function enqueue_react_app() {
/**
* Only enqueue the assets on the proper admin page, and only if WPGraphQL is also active
*/
if ( 'toplevel_page_wp-graphiql/wp-graphiql' === get_current_screen()->id && $this->is_wpgraphql_active() ) {
if ( strpos( get_current_screen()->id, 'wp-graphiql/wp-graphiql' ) && $this->is_wpgraphql_active() ) {

wp_enqueue_style( 'wp-graphiql', $this->get_app_stylesheet(), array(), false, false );
wp_enqueue_script( 'wp-graphiql-helpers', $this->get_app_script_helpers(), array( 'jquery' ), false, true );
Expand Down

0 comments on commit c0e2a41

Please sign in to comment.