fix: fix unnecessary request for theme-undefined.css (#852)
This commit is contained in:
parent
4ab9687200
commit
cf94e7d61e
|
@ -30,7 +30,7 @@ function loadCSS (href) {
|
||||||
document.head.insertBefore(link, offlineStyle)
|
document.head.insertBefore(link, offlineStyle)
|
||||||
}
|
}
|
||||||
|
|
||||||
export function switchToTheme (themeName) {
|
export function switchToTheme (themeName = 'default') {
|
||||||
let themeColor = window.__themeColors[themeName]
|
let themeColor = window.__themeColors[themeName]
|
||||||
meta.content = themeColor || window.__themeColors['default']
|
meta.content = themeColor || window.__themeColors['default']
|
||||||
if (themeName !== 'default') {
|
if (themeName !== 'default') {
|
||||||
|
|
Loading…
Reference in a new issue