Skip to content

Commit

Permalink
AUTOFIX Fix process.env
Browse files Browse the repository at this point in the history
  • Loading branch information
sirreal committed May 14, 2024
1 parent 6ce0c16 commit db55ea9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/private-apis/src/implementation.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ let allowReRegistration;
// Let's default to true, then. Try/catch will fall back to "true" even if the
// environment variable is not explicitly defined.
try {
allowReRegistration = process.env.IS_WORDPRESS_CORE ? false : true;
allowReRegistration = globalThis.IS_WORDPRESS_CORE ? false : true;
} catch ( error ) {
allowReRegistration = true;
}
Expand Down

0 comments on commit db55ea9

Please sign in to comment.