We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8c34152 commit 0128173Copy full SHA for 0128173
1 file changed
src/main/java/com/aventstack/extentreports/model/ScreenCapture.java
@@ -25,9 +25,7 @@ public Boolean isBase64() {
25
public String getSource() {
26
if (getBase64String() != null)
27
return "<a href='" + getScreenCapturePath() + "' data-featherlight='image'><span class='label grey badge white-text text-white'>base64-img</span></a>";
28
- String path = "file:///";
29
- path += getScreenCapturePath().replace("\\","/");
30
- return "<img class='r-img' onerror='this.style.display=\"none\"' data-featherlight='" + path + "' src='" + path + "'>";
+ return "<img class='r-img' onerror='this.style.display=\"none\"' data-featherlight='" + getScreenCapturePath() + "' src='" + getScreenCapturePath() + "'>";
31
}
32
33
0 commit comments