diff options
author | hmhealey <harrisonmhealey@gmail.com> | 2015-12-15 11:36:14 -0500 |
---|---|---|
committer | hmhealey <harrisonmhealey@gmail.com> | 2015-12-15 11:36:14 -0500 |
commit | e4899fa551d53ec07718659eed97178052982552 (patch) | |
tree | cb3169be1035ac5c17a3dffa24f86a90f5850fa4 /web/react/components/channel_loader.jsx | |
parent | 2980a56370dfe150952beeb97c25e5e21e7fc7e5 (diff) | |
download | chat-e4899fa551d53ec07718659eed97178052982552.tar.gz chat-e4899fa551d53ec07718659eed97178052982552.tar.bz2 chat-e4899fa551d53ec07718659eed97178052982552.zip |
Improved PreferenceStore api when getting values
Diffstat (limited to 'web/react/components/channel_loader.jsx')
-rw-r--r-- | web/react/components/channel_loader.jsx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/web/react/components/channel_loader.jsx b/web/react/components/channel_loader.jsx index 0d1d9efd7..712d6885f 100644 --- a/web/react/components/channel_loader.jsx +++ b/web/react/components/channel_loader.jsx @@ -71,7 +71,7 @@ export default class ChannelLoader extends React.Component { } // 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; + const selectedFont = PreferenceStore.get(Constants.Preferences.CATEGORY_DISPLAY_SETTINGS, 'selected_font', Constants.DEFAULT_FONT); Utils.applyFont(selectedFont); $('body').on('mouseenter mouseleave', '.post', function mouseOver(ev) { |