Skip to content

Commit 0128173

Browse files
committed
closes #115
1 parent 8c34152 commit 0128173

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

src/main/java/com/aventstack/extentreports/model/ScreenCapture.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,7 @@ public Boolean isBase64() {
2525
public String getSource() {
2626
if (getBase64String() != null)
2727
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 + "'>";
28+
return "<img class='r-img' onerror='this.style.display=\"none\"' data-featherlight='" + getScreenCapturePath() + "' src='" + getScreenCapturePath() + "'>";
3129
}
3230

3331
}

0 commit comments

Comments
 (0)