File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -331,18 +331,22 @@ function playground_text(playground, hidden = true) {
331331 stylesheets . ayuHighlight . disabled = true ;
332332 stylesheets . tomorrowNight . disabled = false ;
333333 stylesheets . highlight . disabled = true ;
334-
335334 ace_theme = "ace/theme/tomorrow_night" ;
336335 } else if ( theme == 'ayu' ) {
337336 stylesheets . ayuHighlight . disabled = false ;
338337 stylesheets . tomorrowNight . disabled = true ;
339338 stylesheets . highlight . disabled = true ;
340339 ace_theme = "ace/theme/tomorrow_night" ;
341- } else {
340+ } else if ( theme == 'rust' || theme == 'light' ) {
342341 stylesheets . ayuHighlight . disabled = true ;
343342 stylesheets . tomorrowNight . disabled = true ;
344343 stylesheets . highlight . disabled = false ;
345344 ace_theme = "ace/theme/dawn" ;
345+ } else {
346+ stylesheets . ayuHighlight . disabled = true ;
347+ stylesheets . tomorrowNight . disabled = true ;
348+ stylesheets . highlight . disabled = false ;
349+ ace_theme = "ace/theme/tomorrow_night" ;
346350 }
347351
348352 setTimeout ( function ( ) {
You can’t perform that action at this time.
0 commit comments