Skip to content

Commit cf57b39

Browse files
committed
use url directly for layout images when not in static mode
The data uri is necessary for export only, which should always use staticPlot
1 parent 22d8e85 commit cf57b39

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/images/draw.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ module.exports = function draw(gd) {
7373

7474
thisImage.attr('xmlns', xmlnsNamespaces.svg);
7575

76-
if(d.source && d.source.slice(0, 5) === 'data:') {
76+
if(!gd._context.staticPlot || (d.source && d.source.slice(0, 5) === 'data:')) {
7777
thisImage.attr('xlink:href', d.source);
7878
this._imgSrc = d.source;
7979
} else {

0 commit comments

Comments
 (0)