]> Untitled Git - lemmy.git/commitdiff
Fix for non-logged-in user theme.
authorDessalines <tyhou13@gmx.com>
Wed, 13 Nov 2019 22:03:09 +0000 (14:03 -0800)
committerDessalines <tyhou13@gmx.com>
Wed, 13 Nov 2019 22:03:09 +0000 (14:03 -0800)
Fixes #338

ui/src/services/UserService.ts

index b6d8b768675d4cc70791529f8c6166710c9ef710..cdb340b6553da5700391c8d953e19378c476ebd1 100644 (file)
@@ -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.');
     }
   }