Skip to content

Commit 13f7c91

Browse files
committed
refactor using ?
1 parent 4b0ab13 commit 13f7c91

File tree

1 file changed

+1
-7
lines changed
  • packages/javascript/jupyterlab-plotly/src

1 file changed

+1
-7
lines changed

Diff for: packages/javascript/jupyterlab-plotly/src/Figure.ts

+1-7
Original file line numberDiff line numberDiff line change
@@ -828,13 +828,7 @@ export class FigureView extends DOMWidgetView {
828828

829829
// MathJax v2 configuration
830830
// ---------------------
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-
}
831+
(window as any)?.MathJax?.Hub?.Config?.({ SVG: { font: "STIX-Web" } });
838832

839833
// Get message ids
840834
// ---------------------

0 commit comments

Comments
 (0)