We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4b0ab13 commit 13f7c91Copy full SHA for 13f7c91
packages/javascript/jupyterlab-plotly/src/Figure.ts
@@ -828,13 +828,7 @@ export class FigureView extends DOMWidgetView {
828
829
// MathJax v2 configuration
830
// ---------------------
831
- if (
832
- (window as any).MathJax &&
833
- (window as any).MathJax.Hub &&
834
- (window as any).MathJax.Hub.Config
835
- ) {
836
- (window as any).MathJax.Hub.Config({ SVG: { font: "STIX-Web" } });
837
- }
+ (window as any)?.MathJax?.Hub?.Config?.({ SVG: { font: "STIX-Web" } });
838
839
// Get message ids
840
0 commit comments