Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
This repository was archived by the owner on Nov 9, 2022. It is now read-only.

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

‎packages/javascript/jupyterlab-plotly/src/Figure.ts‎

Lines changed: 1 addition & 7 deletions
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)

AltStyle によって変換されたページ (->オリジナル) /