From 9e6974021e776256ddd7e713bdd74760cd11bcb5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Emi=20Pallar=C3=A8s?= Date: Mon, 23 Dec 2024 16:50:17 +0100 Subject: [PATCH] fix: update CSS loading path in modal block --- blocks/modal/modal.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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');