diff --git a/packages/block-library/src/navigation/block.json b/packages/block-library/src/navigation/block.json index 211d20a97c18cc..13d7d311df1a14 100644 --- a/packages/block-library/src/navigation/block.json +++ b/packages/block-library/src/navigation/block.json @@ -60,5 +60,6 @@ "__experimentalTextDecoration": true }, "editorStyle": "wp-block-navigation-editor", - "style": "wp-block-navigation" + "style": "wp-block-navigation", + "script": "file:./script.js" } diff --git a/packages/block-library/src/navigation/modals/index.js b/packages/block-library/src/navigation/modals/index.js deleted file mode 100644 index ec810224a6b608..00000000000000 --- a/packages/block-library/src/navigation/modals/index.js +++ /dev/null @@ -1 +0,0 @@ -console.log( 'hi this is the new modals.js' ); diff --git a/packages/block-library/src/navigation/script.js b/packages/block-library/src/navigation/script.js new file mode 100644 index 00000000000000..33c5485bc3c188 --- /dev/null +++ b/packages/block-library/src/navigation/script.js @@ -0,0 +1,3 @@ +console.log( 'This script has been loaded from a block.' ); + +export default {};