Skip to content

Commit

Permalink
fix blocks-view js enqueue
Browse files Browse the repository at this point in the history
  • Loading branch information
cr0ybot committed Dec 17, 2021
1 parent 7bd618f commit c3eb71d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion inc/setup.php
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ function theme_scaffold_scripts() {
wp_enqueue_script( 'theme-scaffold-script', get_template_directory_uri() . '/dist/js/theme.js', array(), $themejs_asset['version'], true );

$blocksviewjs_asset = require get_template_directory() . '/dist/js/theme.asset.php';
wp_enqueue_script( 'theme-scaffold-blocks-view', get_template_directory_uri() . '/dist/js/custom.js', $blocksviewjs_asset['dependencies'], $blocksviewjs_asset['version'], true );
wp_enqueue_script( 'theme-scaffold-blocks-view', get_template_directory_uri() . '/dist/js/blocks-view.js', $blocksviewjs_asset['dependencies'], $blocksviewjs_asset['version'], true );

if ( is_singular() && comments_open() && get_option( 'thread_comments' ) ) {
wp_enqueue_script( 'comment-reply' );
Expand Down

0 comments on commit c3eb71d

Please sign in to comment.