File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff 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 + "'>" +
You can’t perform that action at this time.
0 commit comments