Skip to content

Commit e398650

Browse files
committed
use fat arrows instead of functions
1 parent c0cf949 commit e398650

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

js13kpwa/app.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -55,9 +55,9 @@ function randomNotification() {
5555

5656
// Progressive loading images
5757
const imagesToLoad = document.querySelectorAll('img[data-src]');
58-
const loadImages = function (image) {
58+
const loadImages = (image) => {
5959
image.setAttribute('src', image.getAttribute('data-src'));
60-
image.onload = function () {
60+
image.onload = () => {
6161
image.removeAttribute('data-src');
6262
};
6363
};

0 commit comments

Comments
 (0)