From ed5c4c112357d071191b43551a9575dd69f7c8fc Mon Sep 17 00:00:00 2001
From: =?utf8?q?Orvar=20Segerstr=C3=B6m?= <orvarsegerstrom@gmail.com>
Date: Mon, 26 Oct 2020 15:22:14 +0100
Subject: [PATCH] Refactor

---
 src/server/index.tsx | 10 ++++------
 1 file changed, 4 insertions(+), 6 deletions(-)

diff --git a/src/server/index.tsx b/src/server/index.tsx
index 6a7ffbe..34bd453 100644
--- a/src/server/index.tsx
+++ b/src/server/index.tsx
@@ -89,7 +89,7 @@ server.get('/*', async (req, res) => {
            <!DOCTYPE html>
            <html ${helmet.htmlAttributes.toString()} lang="en">
            <head>
-           <script>window.isoData = ${serialize(isoData)}</script>      
+           <script>window.isoData = ${serialize(isoData)}</script>
 
            ${helmet.title.toString()}
            ${helmet.meta.toString()}
@@ -109,14 +109,12 @@ server.get('/*', async (req, res) => {
 
            <!-- Styles -->
            <link rel="stylesheet" type="text/css" href="/static/styles/styles.css" />
-           ${userTheme || ''}
            ${
-             userTheme
-               ? ''
-               : `
+             userTheme ??
+             `
            <link rel="stylesheet" type="text/css" href="/static/assets/css/themes/litely.min.css" id="default-light" media="(prefers-color-scheme: light)" />
            <link rel="stylesheet" type="text/css" href="/static/assets/css/themes/darkly.min.css" id="default-dark" media="(prefers-color-scheme: no-preference), (prefers-color-scheme: dark)" />
-           `
+           `.trim()
            }
            </head>
 
-- 
2.44.1