Skip to content

Commit

Permalink
Ensure codeBasePath is correctly set for assets plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
Satya Deep Maheshwari committed Nov 12, 2024
1 parent 925bfea commit df164c4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion scripts/aem-assets-plugin-support.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
// The based path of the aem-assets-plugin code.
const codeBasePath = '/plugins/aem-assets-plugin';

const codeBasePath = `${window.hlx?.codeBasePath}/plugins/aem-assets-plugin`;

// The blocks that are to be used from the aem-assets-plugin.
const blocks = ['video'];
Expand Down

0 comments on commit df164c4

Please sign in to comment.