Skip to content

Commit be05b1c

Browse files
committed
Gate _glcanvas check
1 parent d5f0962 commit be05b1c

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

src/plot_api/plot_api.js

+5-4
Original file line numberDiff line numberDiff line change
@@ -228,10 +228,11 @@ Plotly.plot = function(gd, data, layout, config) {
228228
});
229229
}
230230

231-
fullLayout._glcanvas
232-
.attr('width', fullLayout.width)
233-
.attr('height', fullLayout.height);
234-
231+
if(fullLayout._glcanvas) {
232+
fullLayout._glcanvas
233+
.attr('width', fullLayout.width)
234+
.attr('height', fullLayout.height);
235+
}
235236

236237
return Lib.syncOrAsync([
237238
subroutines.layoutStyles

0 commit comments

Comments
 (0)