Skip to content

Commit d9c2041

Browse files
committed
Use "main" module id and fix enqueue
1 parent 73684d4 commit d9c2041

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

html-api-debugger/html-api-debugger.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ function () {
7878

7979
wp_enqueue_script_module(
8080
'@html-api-debugger/main',
81-
plugins_url( 'view.js', __FILE__ ),
81+
plugins_url( 'main.js', __FILE__ ),
8282
array(
8383
'@wordpress/interactivity',
8484
'@html-api-debugger/print-html-tree',
@@ -95,7 +95,7 @@ function () {
9595
function ( $hook_suffix ) {
9696
if ( $hook_suffix === 'toplevel_page_' . SLUG ) {
9797
wp_enqueue_style( SLUG, plugins_url( 'style.css', __FILE__ ), array(), VERSION );
98-
wp_enqueue_script_module( '@html-api-debugger/view' );
98+
wp_enqueue_script_module( '@html-api-debugger/main' );
9999
}
100100
}
101101
);
File renamed without changes.

0 commit comments

Comments
 (0)