fix: fix unnecessary request for theme-undefined.css (#852)

This commit is contained in:
Nolan Lawson 2018-12-22 15:37:56 -08:00 committed by GitHub
parent 4ab9687200
commit cf94e7d61e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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') {