From: Dessalines Date: Wed, 13 Nov 2019 22:03:09 +0000 (-0800) Subject: Fix for non-logged-in user theme. X-Git-Url: http://these/git/%22%7Burl%7D/%22https:/image.com/%7B%60%24%7BghostArchiveUrl%7D/%7Biframely.thumbnail_url%7D?a=commitdiff_plain;h=cd7d3e3fd743d478e2c58007cb3c80d569e09079;p=lemmy.git Fix for non-logged-in user theme. Fixes #338 --- diff --git a/ui/src/services/UserService.ts b/ui/src/services/UserService.ts index b6d8b768..cdb340b6 100644 --- a/ui/src/services/UserService.ts +++ b/ui/src/services/UserService.ts @@ -17,9 +17,7 @@ export class UserService { if (jwt) { this.setUser(jwt); } else { - if (this.user.theme != 'darkly') { - setTheme(); - } + setTheme(); console.log('No JWT cookie found.'); } }