diff --git a/electron/createWindow.js b/electron/createWindow.js index dd7f4d0be..b0b30c866 100644 --- a/electron/createWindow.js +++ b/electron/createWindow.js @@ -5,7 +5,7 @@ import windowStateKeeper from 'electron-window-state'; import SUPPORTED_LANGUAGES from 'constants/supported_languages'; import setupBarMenu from './menu/setupBarMenu'; -import * as PAGES from '../../ui/constants/pages'; +import * as PAGES from 'constants/pages'; export default appState => { // Get primary display dimensions from Electron. diff --git a/src/ui/constants/supported_languages.js b/ui/constants/supported_languages.js similarity index 100% rename from src/ui/constants/supported_languages.js rename to ui/constants/supported_languages.js diff --git a/ui/store.js b/ui/store.js index 2926921fc..9d801aaff 100644 --- a/ui/store.js +++ b/ui/store.js @@ -3,7 +3,7 @@ import * as SETTINGS from 'constants/settings'; import { persistStore, persistReducer } from 'redux-persist'; import autoMergeLevel2 from 'redux-persist/lib/stateReconciler/autoMergeLevel2'; import createCompressor from 'redux-persist-transform-compress'; -import createFilter from 'redux-persist-transform-filter'; +import { createFilter, createBlacklistFilter } from 'redux-persist-transform-filter'; import localForage from 'localforage'; import { createStore, applyMiddleware, compose } from 'redux'; import thunk from 'redux-thunk'; @@ -56,6 +56,7 @@ const searchFilter = createFilter('search', ['options']); const tagsFilter = createFilter('tags', ['followedTags']); const subscriptionsFilter = createFilter('subscriptions', ['subscriptions']); const blockedFilter = createFilter('blocked', ['blockedChannels']); +const settingsFilter = createBlacklistFilter('settings', ['loadedLanguages']); const whiteListedReducers = [ 'fileInfo', 'publish', @@ -79,6 +80,7 @@ const transforms = [ tagsFilter, contentFilter, subscriptionsFilter, + settingsFilter, createCompressor(), ];