Skip to content

Commit 4840780

Browse files
committed
read default id from preload!
1 parent 4544e55 commit 4840780

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

index.html

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2077,11 +2077,10 @@
20772077
function preloadLargeImage()
20782078
{
20792079
const link = document.getElementById("LcpLink");
2080-
const regex = /\/([^\/]+)\.[^\.]+$/;
2080+
const regex = /\/([^\/]+)\.[^.]+$/;
20812081
const match = link.href.match(regex);
2082-
console.log(match[1])
2083-
if (match[1]) {
2084-
sDefaultPersonId = match[1];
2082+
if (match[ 1 ]) {
2083+
sDefaultPersonId = match[ 1 ];
20852084
}
20862085
}
20872086
preloadLargeImage();

0 commit comments

Comments
 (0)