From: Dessalines Date: Mon, 14 Sep 2020 15:26:24 +0000 (-0500) Subject: Moving javascript disabled warning to top. X-Git-Url: http://these/git/%22%7Bauthor_url%7D/static/%7BprofileRss%7D?a=commitdiff_plain;h=c10d2f4a76feebd0678ca3636f8263eff7b2d14f;p=lemmy-ui.git Moving javascript disabled warning to top. --- 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,