We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 80acf74 commit 4694460Copy full SHA for 4694460
index.next.js
@@ -7,7 +7,7 @@ import domToArray from 'bianco.dom-to-array'
7
*/
8
export function loadImage(img) {
9
const isUrl = typeof img === 'string'
10
- let i = isUrl ? document.createElement('img') : img
+ const i = isUrl ? document.createElement('img') : img
11
12
// this image was already loaded
13
if (!isUrl && i.complete) return Promise.resolve(i)
0 commit comments