Skip to content

Commit

Permalink
- formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
jasonbahl committed Feb 28, 2024
1 parent 3c88287 commit 84f025a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions wpgraphql-ide.php
Original file line number Diff line number Diff line change
Expand Up @@ -185,14 +185,14 @@ function enqueue_react_app_with_styles(): void {
}

// Don't enqueue new styles/scripts on the legacy IDE page
if ( function_exists( 'get_current_screen' ) ) {
$screen = get_current_screen();
if ( function_exists( 'get_current_screen' ) ) {
$screen = get_current_screen();
if ( 'toplevel_page_graphiql-ide' === $screen->id ) {
return;
}
}

if ( user_lacks_capability() ) {
if ( user_lacks_capability() ) {
return;
}

Expand Down

0 comments on commit 84f025a

Please sign in to comment.