Skip to content

Commit

Permalink
Merge pull request #2018 from ThemeFuse/fix/react-dev-tools
Browse files Browse the repository at this point in the history
fix(react): append react-dev-tool var before react scripts
  • Loading branch information
alecszaharia authored Nov 5, 2024
2 parents f8aaec8 + 61721e8 commit 6d77469
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 6d77469

Please sign in to comment.