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 d4d6f13
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion brizy.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
$_SERVER['HTTPS'] = 'on';
}

define('BRIZY_DEVELOPMENT', false );
define('BRIZY_DEVELOPMENT', true );
define('BRIZY_LOG', false );
define('BRIZY_VERSION', '2.5.9');
define('BRIZY_MINIMUM_PRO_VERSION', '2.4.15');
Expand Down
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 d4d6f13

Please sign in to comment.