We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ed0c97e commit dc9cc78Copy full SHA for dc9cc78
inst/htmlwidgets/plotly.js
@@ -143,9 +143,9 @@ HTMLWidgets.widget({
143
}
144
145
// remove "sendDataToCloud", unless user has specified they want it
146
- var config = x.config || {};
147
- if (!config.cloud) {
148
- x.config.modeBarButtonsToRemove = config.modeBarButtonsToRemove || [];
+ x.config = x.config || {};
+ if (!x.config.cloud) {
+ x.config.modeBarButtonsToRemove = x.config.modeBarButtonsToRemove || [];
149
x.config.modeBarButtonsToRemove.push("sendDataToCloud");
150
151
0 commit comments