aboutsummaryrefslogblamecommitdiff
path: root/src/settings/index.jsx
blob: 8097d31a8254398b388b88b6c0736a940854ae45 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
                                   
                                             


                                                     
 


                           

                                                             
         




                            
import { h, render } from 'preact';
import SettingsComponent from './components';
import reducer from './reducers/setting';
import { Provider } from 'preact-redux';
import promise from 'redux-promise';
import { createStore, applyMiddleware } from 'redux';

const store = createStore(
  reducer,
  applyMiddleware(promise),
);

document.addEventListener('DOMContentLoaded', () => {
  let wrapper = document.getElementById('vimvixen-settings');
  render(
    <Provider store={store}>
      <SettingsComponent />
    </Provider>,
    wrapper
  );
});