diff --git a/blocks/modal/modal.js b/blocks/modal/modal.js index a584e390f..c44aa3923 100644 --- a/blocks/modal/modal.js +++ b/blocks/modal/modal.js @@ -1,7 +1,7 @@ import { loadCSS, buildBlock } from '../../scripts/aem.js'; export default async function createModal(contentNodes) { - await loadCSS(`${window.location.origin}/blocks/modal/modal.css`); + await loadCSS('/blocks/modal/modal.css'); const dialog = document.createElement('dialog'); dialog.setAttribute('tabindex', 1); dialog.setAttribute('role', 'dialog');