From 88621b9ecd70c0e843485e2bb604386ba807a4f2 Mon Sep 17 00:00:00 2001 From: memreyagci Date: Thu, 1 Apr 2021 22:29:47 +0200 Subject: [PATCH] Fixed: Theme of wiki and saved pages were set to white even though the setting was auto and the browser had a dark theme. --- views/saved.pug | 2 +- views/subreddit_wiki.pug | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/views/saved.pug b/views/saved.pug index ac30e6c..d31f4b6 100644 --- a/views/saved.pug +++ b/views/saved.pug @@ -3,7 +3,7 @@ html head title saved include includes/head.pug - body(class=""+ user_preferences.theme +"") + body(class=""+ (user_preferences.theme === 'auto' ? 'dark' : user_preferences.theme) + "") include includes/topbar.pug if json === null h1 No saved posts diff --git a/views/subreddit_wiki.pug b/views/subreddit_wiki.pug index 9d2d2a6..bd09710 100644 --- a/views/subreddit_wiki.pug +++ b/views/subreddit_wiki.pug @@ -3,7 +3,7 @@ html head title wiki /r/#{subreddit} include includes/head.pug - body(class=""+ user_preferences.theme +"") + body(class=""+ (user_preferences.theme === 'auto' ? 'dark' : user_preferences.theme) + "") include includes/topbar.pug if json === null h1 Error occured