Skip to content

Commit

Permalink
lintchanges
Browse files Browse the repository at this point in the history
  • Loading branch information
shivangi1422 committed Sep 25, 2023
1 parent 28866fc commit 13f9d09
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion blocks/carousel/carousel.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/* eslint-disable no-unused-expressions */
import { decorateIcons, loadCSS } from '../../scripts/lib-franklin.js';
import { div, p, span } from '../../scripts/dom-helpers.js';
import { handleCompareProducts } from '../carousel/card.js';
import { handleCompareProducts } from './card.js';

const AUTOSCROLL_INTERVAL = 7000;

Expand Down
2 changes: 2 additions & 0 deletions scripts/lib-franklin.js
Original file line number Diff line number Diff line change
Expand Up @@ -334,6 +334,8 @@ export function readBlockConfig(block) {
* @param {Element} main The container element
*/
export function decorateSections(main) {
const imageMediaQuery = window.matchMedia('only screen and (min-width: 400px)');

main.querySelectorAll(':scope > div').forEach((section) => {
const wrappers = [];
let defaultContent = false;
Expand Down

0 comments on commit 13f9d09

Please sign in to comment.