From c889d9bee107c61513f037fa2f66bf3a0d3fcb42 Mon Sep 17 00:00:00 2001
From: hmhealey <harrisonmhealey@gmail.com>
Date: Tue, 26 Jan 2016 09:52:26 -0500
Subject: Moved PreferenceStore initialization into head.html

---
 web/react/pages/channel.jsx | 6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)

(limited to 'web/react/pages/channel.jsx')

diff --git a/web/react/pages/channel.jsx b/web/react/pages/channel.jsx
index 5bb0294fd..bfb95e1fc 100644
--- a/web/react/pages/channel.jsx
+++ b/web/react/pages/channel.jsx
@@ -18,8 +18,6 @@ import RegisterAppModal from '../components/register_app_modal.jsx';
 import ImportThemeModal from '../components/user_settings/import_theme_modal.jsx';
 import InviteMemberModal from '../components/invite_member_modal.jsx';
 
-import PreferenceStore from '../stores/preference_store.jsx';
-
 import * as EventHelpers from '../dispatcher/event_helpers.jsx';
 
 var IntlProvider = ReactIntl.IntlProvider;
@@ -88,15 +86,13 @@ class Root extends React.Component {
     }
 }
 
-global.window.setup_channel_page = function setup(props, team, channel, preferences) {
+global.window.setup_channel_page = function setup(props, team, channel) {
     if (props.PostId === '') {
         EventHelpers.emitChannelClickEvent(channel);
     } else {
         EventHelpers.emitPostFocusEvent(props.PostId);
     }
 
-    PreferenceStore.setPreferences(preferences);
-
     ReactDOM.render(
         <Root map={props} />,
         document.getElementById('channel_view')
-- 
cgit v1.2.3-1-g7c22

