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 4421f6b commit 7f4becd
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions _pages/payment-accuracy/assets/js/slick.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,18 +14,18 @@
Issues: http://github.com/kenwheeler/slick/issues
*/
/* global window, document, define, jQuery, setInterval, clearInterval */
/* global window, document, define, jQuery, setInterval, clearInterval, DOMPurify */
(function (factory) {
'use strict';
if (typeof define === 'function' && define.amd) {
define(['jquery'], factory);
define(['jquery', 'dompurify'], factory);
} else if (typeof exports !== 'undefined') {
module.exports = factory(require('jquery'));
module.exports = factory(require('jquery'), require('dompurify'));
} else {
factory(jQuery);
factory(jQuery, DOMPurify);
}

}(function ($) {
}(function ($, DOMPurify) {
'use strict';
var Slick = window.Slick || {};

Expand Down Expand Up @@ -1459,7 +1459,7 @@
$('img[data-lazy]', imagesScope).each(function () {

var image = $(this),
imageSource = $(this).attr('data-lazy'),
imageSource = DOMPurify.sanitize($(this).attr('data-lazy')),
imageToLoad = document.createElement('img');

imageToLoad.onload = function () {
Expand Down

0 comments on commit 7f4becd

Please sign in to comment.