Skip to content

Commit

Permalink
fix(react): append react-dev-tool var before react scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
maxval1 committed Nov 5, 2024
1 parent f8aaec8 commit 61721e8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion public/main.php
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ public function _action_enqueue_editor_assets() {

if ( BRIZY_DEVELOPMENT === true ) {
wp_add_inline_script(
'brizy-editor',
'brizy-react-vendor',
"window.__REACT_DEVTOOLS_GLOBAL_HOOK__ = window.parent.__REACT_DEVTOOLS_GLOBAL_HOOK__;",
'before'
);
Expand Down

0 comments on commit 61721e8

Please sign in to comment.