File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -285,6 +285,10 @@ proto.hasButtons = function(buttons) {
285285 return true ;
286286} ;
287287
288+ function jsVersion ( str ) {
289+ return str . replace ( 'Plotly' , 'Plotly.js' ) + ' (v' + version + ')' ;
290+ }
291+
288292/**
289293 * @return {HTMLDivElement } The logo image wrapped in a group
290294 */
@@ -294,7 +298,7 @@ proto.getLogo = function() {
294298
295299 a . href = 'https://plotly.com/' ;
296300 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' ) ) ) ;
298302 a . className = 'modebar-btn plotlyjsicon modebar-btn--logo' ;
299303
300304 a . appendChild ( this . createIcon ( Icons . newplotlylogo ) ) ;
You can’t perform that action at this time.
0 commit comments