summaryrefslogtreecommitdiffstats
path: root/web/react/components/channel_loader.jsx
diff options
context:
space:
mode:
authorFlorian Orben <florian.orben@gmail.com>2015-12-04 23:42:23 +0100
committerFlorian Orben <florian.orben@gmail.com>2015-12-04 23:42:23 +0100
commitc440f253ddd123de909356bac366648372edbee8 (patch)
treea02b165dc34befb734512364d68227a365a820ff /web/react/components/channel_loader.jsx
parent1bee1e06e4d0110db274c076860fa97f76471ddb (diff)
downloadchat-c440f253ddd123de909356bac366648372edbee8.tar.gz
chat-c440f253ddd123de909356bac366648372edbee8.tar.bz2
chat-c440f253ddd123de909356bac366648372edbee8.zip
fix font not being changed on first page visit (if preferences havent been loaded before)
Diffstat (limited to 'web/react/components/channel_loader.jsx')
-rw-r--r--web/react/components/channel_loader.jsx1
1 files changed, 1 insertions, 0 deletions
diff --git a/web/react/components/channel_loader.jsx b/web/react/components/channel_loader.jsx
index 13045d732..0d1d9efd7 100644
--- a/web/react/components/channel_loader.jsx
+++ b/web/react/components/channel_loader.jsx
@@ -70,6 +70,7 @@ export default class ChannelLoader extends React.Component {
Utils.applyTheme(Constants.THEMES.default);
}
+ // if preferences have already been stored in local storage do not wait until preference store change is fired and handled in channel.jsx
const selectedFont = PreferenceStore.getPreference(Constants.Preferences.CATEGORY_DISPLAY_SETTINGS, 'selected_font', {value: Constants.DEFAULT_FONT}).value;
Utils.applyFont(selectedFont);