Skip to content

Commit 468b844

Browse files
authored
Add plotlyServerUrl to baseUrl
Fixes #2759 (comment)
1 parent edc166f commit 468b844

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/plots/plots.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,11 @@ function positionPlayWithData(gd, container) {
214214
plots.sendDataToCloud = function(gd) {
215215
gd.emit('plotly_beforeexport');
216216

217-
var baseUrl = (window.PLOTLYENV && window.PLOTLYENV.BASE_URL) || 'https://plot.ly';
217+
var baseUrl = (
218+
(window.PLOTLYENV && window.PLOTLYENV.BASE_URL) ||
219+
(gd.framework.getConfig().plotlyServerUrl) ||
220+
'https://plot.ly'
221+
);
218222

219223
var hiddenformDiv = d3.select(gd)
220224
.append('div')

0 commit comments

Comments
 (0)