Skip to content

Commit

Permalink
Merge pull request #160 from dxw/fix/set-jquery-as-dependency
Browse files Browse the repository at this point in the history
Fix / set jquery as dependency
  • Loading branch information
sbrody authored Feb 21, 2024
2 parents c6e2a88 + 2e24ded commit e4481b0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/assets.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
});

add_action('wp_enqueue_scripts', function () {
wp_enqueue_script('main', get_template_directory_uri().'/build/main.min.js');
wp_enqueue_script('main', get_template_directory_uri().'/build/main.min.js', ['jquery']);
wp_enqueue_style('main', get_template_directory_uri().'/build/main.min.css');
});

Expand Down

0 comments on commit e4481b0

Please sign in to comment.