From 29cc5e16bc397ddca4f7740eb6fa25dc74960d0d Mon Sep 17 00:00:00 2001 From: Christopher Speller Date: Wed, 30 Mar 2016 09:30:33 -0400 Subject: Resetting theme upon logout. Displaying loading page when logging in so user does not see their theme switch. --- webapp/utils/utils.jsx | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'webapp/utils') diff --git a/webapp/utils/utils.jsx b/webapp/utils/utils.jsx index 83519a6ec..3d1aa79a1 100644 --- a/webapp/utils/utils.jsx +++ b/webapp/utils/utils.jsx @@ -795,6 +795,10 @@ export function applyTheme(theme) { updateCodeTheme(theme.codeTheme); } +export function resetTheme() { + applyTheme(Constants.THEMES.default); +} + export function applyFont(fontName) { const body = $('body'); -- cgit v1.2.3-1-g7c22