File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change 1+ const DEFAULT_THEME = 'md' ;
12
23( function ( ) {
34
2021 */
2122 const themeQuery = window . location . search . match ( / i o n i c : t h e m e = ( [ a - z 0 - 9 ] + ) / i) ;
2223 const themeAttr = document . documentElement . getAttribute ( 'theme' ) ;
23- const themeName = themeQuery ?. [ 1 ] || themeAttr || 'md' ;
24+ const themeName = themeQuery ?. [ 1 ] || themeAttr || DEFAULT_THEME ;
2425
2526 // TODO(): Remove this when the tokens are working for all components
2627 // and the themes all use the same bundle
5556 loadThemeTokens ( themeName , paletteName ) ;
5657 } else if ( themeName ) {
5758 console . warn (
58- `Unsupported theme "${ themeName } ". Supported themes are: ${ validThemes . join ( ', ' ) } .`
59+ `Unsupported theme "${ themeName } ". Supported themes are: ${ validThemes . join ( ', ' ) } . Defaulting to ${ DEFAULT_THEME } . `
5960 ) ;
6061 }
6162
You can’t perform that action at this time.
0 commit comments