Skip to content

Commit

Permalink
feat: make the screenshot visible with the other way to display results
Browse files Browse the repository at this point in the history
  • Loading branch information
bgatellier committed Jan 12, 2024
1 parent ae6481d commit 1ffdc9a
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions assets/js/components/SiteAnalysisResult.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,11 @@ class SiteAnalysisResult {
if (urlParams.has("url") && urlParams.has("size") && urlParams.has("ges")) {
for (const [key, value] of urlParams.entries()) {
pageResultData[key] = value;

if (key === "id") {
const screenshotUrl = AnalysisService.fetchAnalysisScreenshotUrlById(urlParams.get("id"))
screenshotImgElement.setAttribute("src", screenshotUrl)
}
}

// update the link URL of every lang switcher
Expand Down

0 comments on commit 1ffdc9a

Please sign in to comment.