Skip to content

Commit d5a26a4

Browse files
authored
Do nothing when showLink is set to be false
1 parent ce06ea9 commit d5a26a4

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/plots/plots.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -257,6 +257,8 @@ plots.previousPromises = function(gd) {
257257
* Add source links to your graph inside the 'showSources' config argument.
258258
*/
259259
plots.addLinks = function(gd) {
260+
if(gd._context.showLink === false) return;
261+
260262
var fullLayout = gd._fullLayout;
261263

262264
var linkContainer = fullLayout._paper

0 commit comments

Comments
 (0)