Skip to content

Commit

Permalink
Enqueue deps for counter block
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathanbardo committed Jan 28, 2022
1 parent 5e308de commit 6c51f35
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion includes/class-coblocks-block-assets.php
Original file line number Diff line number Diff line change
Expand Up @@ -447,10 +447,11 @@ public function frontend_scripts() {

// Counter block.
if ( $this->is_page_gutenberg() || has_block( 'coblocks/counter' ) || has_block( 'core/block' ) ) {
$asset_file = $this->get_asset_file( 'dist/js/coblocks-counter' );
wp_enqueue_script(
'coblocks-counter-script',
$dir . '/coblocks-counter.js',
array(),
$asset_file['dependencies'],
COBLOCKS_VERSION,
true
);
Expand Down

0 comments on commit 6c51f35

Please sign in to comment.