Skip to content

Commit

Permalink
Merge pull request #35 from PatelUtkarsh/fix/asset-path
Browse files Browse the repository at this point in the history
Fix asset path 🐛
  • Loading branch information
PatelUtkarsh authored Apr 14, 2024
2 parents d980133 + 86460aa commit c1485ed
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Admin.php
Original file line number Diff line number Diff line change
Expand Up @@ -95,14 +95,14 @@ public function update_alt_text( array $data, int $post_id ): array {
}

public function enqueue_scripts() {
$version_file = __DIR__ . '/../build/index.build.asset.php';
$version_file = __DIR__ . '/../build/index.asset.php';
if ( ! file_exists( $version_file ) ) {
return;
}
$version = include $version_file;
wp_enqueue_script(
'better-file-name-ai',
$this->plugin_url . '/index.build.js',
$this->plugin_url . '/index.js',
$version['dependencies'],
$version['version'],
[
Expand Down

0 comments on commit c1485ed

Please sign in to comment.