Skip to content

Commit 02f7f23

Browse files
authored
Merge pull request #116 from imatlab-helper/patch-1
check OpenURL before launching browser in offline mode
2 parents 6ca944c + 681d55a commit 02f7f23

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

plotly/plotlyfig.m

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -443,7 +443,9 @@ function validate(obj)
443443
end
444444
else
445445
obj.url = plotlyoffline(obj);
446-
web(obj.url, '-browser');
446+
if obj.PlotOptions.OpenURL
447+
web(obj.url, '-browser');
448+
end
447449
end
448450

449451
end

0 commit comments

Comments
 (0)