summaryrefslogtreecommitdiffstats
path: root/webapp/utils/utils.jsx
diff options
context:
space:
mode:
authorChristopher Speller <crspeller@gmail.com>2016-03-30 09:30:33 -0400
committerChristopher Speller <crspeller@gmail.com>2016-03-30 09:30:33 -0400
commit29cc5e16bc397ddca4f7740eb6fa25dc74960d0d (patch)
treee9215d262f4a687ec172f195c81a93d059de97cc /webapp/utils/utils.jsx
parenta6a0f18166a29dd22525b690d8141961dbecdb9d (diff)
downloadchat-29cc5e16bc397ddca4f7740eb6fa25dc74960d0d.tar.gz
chat-29cc5e16bc397ddca4f7740eb6fa25dc74960d0d.tar.bz2
chat-29cc5e16bc397ddca4f7740eb6fa25dc74960d0d.zip
Resetting theme upon logout. Displaying loading page when logging in so user does not see their theme switch.
Diffstat (limited to 'webapp/utils/utils.jsx')
-rw-r--r--webapp/utils/utils.jsx4
1 files changed, 4 insertions, 0 deletions
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');