Skip to content

Commit 8a0a721

Browse files
committed
fixes #21
1 parent 28b8ccc commit 8a0a721

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ExtentReports/Model/ScreenCapture.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ public string Source
1111
{
1212
if (!string.IsNullOrEmpty(Base64String))
1313
{
14-
return "<a href='" + Base64String + "' data-featherlight='image'><span class='label grey badge white-text text-white'>base64-img</span></a>";
14+
return "<a href='data:image/png;base64," + Base64String + "' data-featherlight='image'><span class='label grey badge white-text text-white'>base64-img</span></a>";
1515
}
1616

1717
return "<img class='r-img' onerror='this.style.display=\"none\"' data-featherlight='" + Path + "' src='" + Path + "' data-src='" + Path + "'>";
@@ -24,7 +24,7 @@ public string SourceIcon
2424
{
2525
if (!string.IsNullOrEmpty(Base64String))
2626
{
27-
return "<a href='" + Base64String + "' data-featherlight='image'><span class='label grey badge white-text text-white'>base64-img</span></a>";
27+
return "<a href='data:image/png;base64," + Base64String + "' data-featherlight='image'><span class='label grey badge white-text text-white'>base64-img</span></a>";
2828
}
2929

3030
return "<a class='r-img' onerror='this.style.display=\"none\"' data-featherlight='" + Path + "' href='" + Path + "' data-src='" + Path + "'>" +

0 commit comments

Comments
 (0)