Merge pull request #1628 from florianorben/fix-font-load-on-first-page-visit

fix font not being changed on first page visit (if preferences havent been loaded before)
Этот коммит содержится в:
Joram Wilander
2015-12-08 08:16:15 -05:00
родитель c67c937388 c440f253dd
Коммит 38c313c934
2 изменённых файлов: 13 добавлений и 0 удалений

Просмотреть файл

@@ -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);