Skip to content

Commit f1a85fe

Browse files
updated: dependencies and fixed npm audit
1 parent 486258b commit f1a85fe

File tree

6 files changed

+1378
-164
lines changed

6 files changed

+1378
-164
lines changed

.travis.yml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,6 @@ branches:
66
only:
77
- master
88

9-
before_install:
10-
11-
12-
- npm i @gianlucaguarini/[email protected]
13-
14-
159
before_script:
1610
- npm run build
1711

index.next.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import domToArray from 'bianco.dom-to-array'
22

33
/**
44
* Preload any image
5-
* @param { String|HTMLElement } img - Path to the image or image object
5+
* @param { string|HTMLElement } img - Path to the image or image object
66
* @returns { Promise } a promise that will be resolved when the image will be completely loaded
77
*/
88
export function loadImage(img) {
@@ -15,7 +15,7 @@ export function loadImage(img) {
1515
// the image reference will set to null
1616
// to avoid memory leaks
1717
return new Promise((resolve, reject) => {
18-
i.onload = _ => resolve(i)
18+
i.onload = () => resolve(i)
1919
i.onerror = i.onabort = reject
2020
if (isUrl) i.src = img
2121
})

0 commit comments

Comments
 (0)