Skip to content

Commit

Permalink
Update slick.js
Browse files Browse the repository at this point in the history
  • Loading branch information
km719 authored Dec 19, 2024
1 parent 7f4becd commit 41793af
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion assets/js/slick.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ import DOMPurify from 'dompurify';
}(function ($) {
'use strict';
var Slick = window.Slick || {};
var DOMPurify = require('dompurify');

Slick = (function () {

Expand Down Expand Up @@ -1649,7 +1650,7 @@ import DOMPurify from 'dompurify';
if ($imgsToLoad.length) {

image = $imgsToLoad.first();
imageSource = image.attr('data-lazy');
imageSource = DOMPurify.sanitize(image.attr('data-lazy'));
imageToLoad = document.createElement('img');

imageToLoad.onload = function () {
Expand Down

0 comments on commit 41793af

Please sign in to comment.