We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 78fbc05 commit 302fa20Copy full SHA for 302fa20
src/components/modebar/modebar.js
@@ -285,6 +285,10 @@ proto.hasButtons = function(buttons) {
285
return true;
286
};
287
288
+function jsVersion(str) {
289
+ return str.replace('Plotly', 'Plotly.js') + ' (v' + version + ')';
290
+}
291
+
292
/**
293
* @return {HTMLDivElement} The logo image wrapped in a group
294
*/
@@ -294,7 +298,7 @@ proto.getLogo = function() {
298
295
299
a.href = 'https://plotly.com/';
296
300
a.target = '_blank';
297
- a.setAttribute('data-title', Lib._(this.graphInfo, 'Produced with Plotly') + '.js ' + version);
301
+ a.setAttribute('data-title', jsVersion(Lib._(this.graphInfo, 'Produced with Plotly')));
302
a.className = 'modebar-btn plotlyjsicon modebar-btn--logo';
303
304
a.appendChild(this.createIcon(Icons.newplotlylogo));
0 commit comments