summaryrefslogtreecommitdiffstats
path: root/webapp/utils
diff options
context:
space:
mode:
authorJoram Wilander <jwawilander@gmail.com>2016-03-30 11:16:33 -0400
committerJoram Wilander <jwawilander@gmail.com>2016-03-30 11:16:33 -0400
commitd2ddddc4aaf1e085c7f02d86d957fe571c70978a (patch)
tree01efcedc9ca98c333c082ac652bff68ce0ad3f8e /webapp/utils
parent4cc7b29c9288321d95ee753b767c9cd0b529f52f (diff)
parent29cc5e16bc397ddca4f7740eb6fa25dc74960d0d (diff)
downloadchat-d2ddddc4aaf1e085c7f02d86d957fe571c70978a.tar.gz
chat-d2ddddc4aaf1e085c7f02d86d957fe571c70978a.tar.bz2
chat-d2ddddc4aaf1e085c7f02d86d957fe571c70978a.zip
Merge pull request #2573 from mattermost/plt-2453
PLT-2453 Resetting theme upon logout.
Diffstat (limited to 'webapp/utils')
-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');