From 99ceb4d02a18d7eb09e45006a269a81ae7373147 Mon Sep 17 00:00:00 2001 From: Tomasz Dziezyk Date: Tue, 5 Dec 2023 16:03:50 +0100 Subject: [PATCH] #199 Refactor --- blocks/v2-embed/v2-embed.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/blocks/v2-embed/v2-embed.js b/blocks/v2-embed/v2-embed.js index 31c51412..50ffda07 100644 --- a/blocks/v2-embed/v2-embed.js +++ b/blocks/v2-embed/v2-embed.js @@ -2,14 +2,14 @@ import { createElement } from '../../scripts/common.js'; const emebdOnPage = (block) => { const scripts = [ - '/blocks/v2-embed/runtime~app.fc549bea.bundle.js', - '/blocks/v2-embed/345.fc549bea.bundle.js', - '/blocks/v2-embed/app.fc549bea.bundle.js', + '/scripts/v2-embed/runtime~app.fc549bea.bundle.js', + '/scripts/v2-embed/345.fc549bea.bundle.js', + '/scripts/v2-embed/app.fc549bea.bundle.js', ]; const styles = [ - '/blocks/v2-embed/345.fc549bea741b7e9d7142.css', - '/blocks/v2-embed/app.fc549bea741b7e9d7142.css', + '/scripts/v2-embed/345.fc549bea741b7e9d7142.css', + '/scripts/v2-embed/app.fc549bea741b7e9d7142.css', ]; block.innerHTML = '
'; @@ -60,7 +60,7 @@ const embedWithIframe = (block) => { // iframe.document.close(); // // `srcdoc` is probably not working on the mobile iOS - MDN has not data about it - iframe.setAttribute('src', '/blocks/v2-embed/index.html'); + iframe.setAttribute('src', '/scripts/v2-embed/index.html'); iframe.setAttribute('title', 'Volvo Trucks North America - Configurator'); block.appendChild(iframe);