1
0
mirror of https://github.com/BoostIo/Boostnote synced 2025-12-13 17:56:25 +00:00

change redirecting to connected-react-router

This commit is contained in:
AWolf81
2019-05-09 07:45:21 +02:00
committed by Junyoung Choi
parent 7e8f46c4f3
commit 3c39dc3cec
6 changed files with 24 additions and 25 deletions

View File

@@ -12,10 +12,11 @@ import _ from 'lodash'
import ConfigManager from 'browser/main/lib/ConfigManager'
import mobileAnalytics from 'browser/main/lib/AwsMobileAnalyticsConfig'
import eventEmitter from 'browser/main/lib/eventEmitter'
import { store, history } from 'browser/main/store'
import { store } from 'browser/main/store'
import i18n from 'browser/lib/i18n'
import { getLocales } from 'browser/lib/Languages'
import applyShortcuts from 'browser/main/lib/shortcutManager'
import { push } from 'connected-react-router'
const path = require('path')
const electron = require('electron')
const { remote } = electron
@@ -131,7 +132,7 @@ class Main extends React.Component {
.then(() => data.storage)
})
.then(storage => {
history.push('/storages/' + storage.key)
store.dispatch(push('/storages/' + storage.key))
})
.catch(err => {
throw err