Skip to content

Commit 2b66839

Browse files
committed
fix(popout): fix some thumbnails not showing up
1 parent eb19d87 commit 2b66839

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

popup/lazyload.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,10 @@
77

88
const loadImage = ($img, fn) => {
99
const img = new Image();
10-
const src = $img.getAttribute('data-src');
10+
let src = $img.getAttribute('data-src');
11+
if (/^\/\//.test(src)) {
12+
src = 'https:' + src;
13+
}
1114
img.onload = () => {
1215
$img.src = src;
1316
$img.classList.remove('lazy');

0 commit comments

Comments
 (0)