Skip to content

Commit

Permalink
Tweak: Fix fatal error on script debug enabled (#335)
Browse files Browse the repository at this point in the history
  • Loading branch information
KingYes authored Oct 25, 2023
1 parent f577a66 commit cc51b9f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion includes/settings-functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ function hello_elementor_settings_page_scripts() {
$dir = get_template_directory() . '/assets/js';
$suffix = defined( 'SCRIPT_DEBUG' ) && SCRIPT_DEBUG ? '' : '.min';
$handle = 'hello-admin';
$asset_path = "$dir/hello-admin$suffix.asset.php";
$asset_path = "$dir/hello-admin.asset.php";
$asset_url = get_template_directory_uri() . '/assets/js';
if ( ! file_exists( $asset_path ) ) {
throw new \Error( 'You need to run `npm run build` for the "hello-theme" first.' );
Expand Down

0 comments on commit cc51b9f

Please sign in to comment.