Skip to content

Commit

Permalink
#199 Refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
tdziezykDS committed Dec 5, 2023
1 parent 3bfcf9a commit 99ceb4d
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions blocks/v2-embed/v2-embed.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 = '<div id="configurator"></div>';
Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit 99ceb4d

Please sign in to comment.