From cf94e7d61ed08f2d4810ce7f75290bca26de0769 Mon Sep 17 00:00:00 2001 From: Nolan Lawson Date: Sat, 22 Dec 2018 15:37:56 -0800 Subject: [PATCH] fix: fix unnecessary request for theme-undefined.css (#852) --- src/routes/_utils/themeEngine.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/routes/_utils/themeEngine.js b/src/routes/_utils/themeEngine.js index 4a6dea2..d013cfc 100644 --- a/src/routes/_utils/themeEngine.js +++ b/src/routes/_utils/themeEngine.js @@ -30,7 +30,7 @@ function loadCSS (href) { document.head.insertBefore(link, offlineStyle) } -export function switchToTheme (themeName) { +export function switchToTheme (themeName = 'default') { let themeColor = window.__themeColors[themeName] meta.content = themeColor || window.__themeColors['default'] if (themeName !== 'default') {