use one Archive instance for state.archive
This commit is contained in:
parent
989137342b
commit
c585c34c01
6 changed files with 14 additions and 13 deletions
|
@ -16,6 +16,7 @@ import Raven from 'raven-js';
|
|||
import './main.css';
|
||||
import User from './user';
|
||||
import { getTranslator } from './locale';
|
||||
import Archive from './archive';
|
||||
|
||||
if (navigator.doNotTrack !== '1' && window.RAVEN_CONFIG) {
|
||||
Raven.config(window.SENTRY_ID, window.RAVEN_CONFIG).install();
|
||||
|
@ -37,6 +38,7 @@ if (process.env.NODE_ENV === 'production') {
|
|||
|
||||
const translate = await getTranslator(LOCALE);
|
||||
window.initialState = {
|
||||
archive: new Archive(),
|
||||
capabilities,
|
||||
translate,
|
||||
storage,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue