Skip to content

Commit c287362

Browse files
committed
fix(inc): path to js
1 parent d3ea012 commit c287362

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

inc/Services/Assets.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ public function register_assets(): void {
5959
$theme = wp_get_theme();
6060

6161
// JavaScript
62-
$file = $this->get_min_file( 'js' );
62+
$file = $this->get_min_file( 'js' ) ?: 'app.js';
6363
$asset_data = $this->get_asset_data( $file );
6464
$this->assets_tools->register_script(
6565
'scripts',

inc/Services/Editor.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ private function style(): void {
7777
* Editor script
7878
*/
7979
public function admin_editor_script(): void {
80-
$file = $this->assets->get_min_file( 'editor.js' );
80+
$file = $this->assets->get_min_file( 'editor.js' ) ?: 'editor.js';
8181
$filepath = 'dist/' . $file;
8282

8383
if ( ! file_exists( get_theme_file_path( $filepath ) ) ) {

0 commit comments

Comments
 (0)