From b290b0c33d13df5ac574ad5c6693586cf72cac6b Mon Sep 17 00:00:00 2001 From: bobzel Date: Tue, 21 Sep 2021 19:59:30 -0400 Subject: temporary change to reset old accounts on browndash to enable dark mode. --- src/client/util/CurrentUserUtils.ts | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src') diff --git a/src/client/util/CurrentUserUtils.ts b/src/client/util/CurrentUserUtils.ts index 568a9ddbd..2fcf06bd8 100644 --- a/src/client/util/CurrentUserUtils.ts +++ b/src/client/util/CurrentUserUtils.ts @@ -1363,6 +1363,9 @@ export class CurrentUserUtils { // undefined means ColorScheme.Light until all CSS is updated with values for each color scheme (e.g., see MainView.scss, DocumentDecorations.scss) doc.activeDashboard.colorScheme = doc.activeDashboard.colorScheme === ColorScheme.Light ? undefined : doc.activeDashboard.colorScheme; } + if (doc.activeCollectionNestedBackground === "white") { // temporary to avoid having to rebuild the databse for old accounts that have this set by default. + doc.activeCollectionNestedBackground = undefined; + } return doc; } -- cgit v1.2.3-70-g09d2