File tree Expand file tree Collapse file tree 2 files changed +3
-4
lines changed
Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Original file line number Diff line number Diff line change 1616 theme : initTheme /* <default|dark|forest|neutral> */
1717 } ;
1818
19-
2019 /* Markdown converts to HTML */
2120 $ ( "pre" ) . has ( "code.language-mermaid" ) . each ( function ( ) {
2221 let svgCode = $ ( this ) . children ( ) . html ( ) ;
Original file line number Diff line number Diff line change 1717 static get LIGHT_MODE ( ) { return "light" ; }
1818
1919 constructor ( ) {
20- if ( this . mode != null ) {
21- if ( this . mode == ModeToggle . DARK_MODE ) {
20+ if ( this . hasMode ) {
21+ if ( this . isDarkMode ) {
2222 if ( ! this . isSysDarkPrefer ) {
2323 this . setDark ( ) ;
2424 }
9292 }
9393
9494 updateMermaid ( ) {
95- if ( mermaid !== undefined ) {
95+ if ( typeof mermaid !== " undefined" ) {
9696 let expectedTheme = ( this . modeStatus === ModeToggle . DARK_MODE ? "dark" : "default" ) ;
9797 let config = { theme : expectedTheme } ;
9898
You can’t perform that action at this time.
0 commit comments