From c10d2f4a76feebd0678ca3636f8263eff7b2d14f Mon Sep 17 00:00:00 2001 From: Dessalines Date: Mon, 14 Sep 2020 10:26:24 -0500 Subject: [PATCH] Moving javascript disabled warning to top. --- src/server/index.tsx | 6 +++--- src/shared/services/UserService.ts | 1 - src/shared/utils.ts | 6 +++--- 3 files changed, 6 insertions(+), 7 deletions(-) diff --git a/src/server/index.tsx b/src/server/index.tsx index ce89a7f..1c04ed5 100644 --- a/src/server/index.tsx +++ b/src/server/index.tsx @@ -99,9 +99,9 @@ server.get('/*', async (req, res) => {
${root}
diff --git a/src/shared/services/UserService.ts b/src/shared/services/UserService.ts index 760fb4e..72066ad 100644 --- a/src/shared/services/UserService.ts +++ b/src/shared/services/UserService.ts @@ -1,7 +1,6 @@ // import Cookies from 'js-cookie'; import IsomorphicCookie from 'isomorphic-cookie'; import { User, LoginResponse } from 'lemmy-js-client'; -import { setTheme } from '../utils'; import jwt_decode from 'jwt-decode'; import { Subject, BehaviorSubject } from 'rxjs'; diff --git a/src/shared/utils.ts b/src/shared/utils.ts index 79d52ad..0e9f3a1 100644 --- a/src/shared/utils.ts +++ b/src/shared/utils.ts @@ -1054,9 +1054,9 @@ function hsl(num: number) { return `hsla(${num}, 35%, 50%, 1)`; } -function randomHsl() { - return `hsla(${Math.random() * 360}, 100%, 50%, 1)`; -} +// function randomHsl() { +// return `hsla(${Math.random() * 360}, 100%, 50%, 1)`; +// } export function previewLines( text: string, -- 2.44.1