Merge pull request #472 from hashicorp/fix-desktop-dark-mode

fix: 🐛 dark mode should persist
This commit is contained in:
Susmitha Girumala authored and GitHub committed 2021-02-12 16:04:38 -05:00
commit 41a92da8db
1 file changed
+2
+2
View File
@@ -32,6 +32,8 @@ export default class ApplicationRoute extends Route.extend(
* origin so that the renderer's CSP can be rewritten to allow requests.
*/
beforeModel() {
const theme = this.session.get('data.theme');
this.toggleTheme(theme);
return this.origin.updateOrigin();
}