1
0
mirror of https://github.com/BoostIo/Boostnote synced 2025-12-22 06:01:45 +00:00

Key入力追加

This commit is contained in:
Rokt33r
2015-10-31 18:21:42 +09:00
parent 3d0b79f674
commit 954e148be3
10 changed files with 164 additions and 31 deletions

View File

@@ -7,6 +7,8 @@ import HomePage from './HomePage'
// import auth from 'boost/auth'
import store from 'boost/store'
import ReactDOM from 'react-dom'
import { isModalOpen, closeModal } from 'boost/modal'
import { IDLE_MODE, CREATE_MODE, EDIT_MODE } from 'boost/actions'
require('../styles/main/index.styl')
let routes = (
@@ -25,21 +27,4 @@ ReactDOM.render((
), el, function () {
let loadingCover = document.getElementById('loadingCover')
loadingCover.parentNode.removeChild(loadingCover)
// Refresh user information
// if (auth.user() != null) {
// fetchCurrentUser()
// .then(function (res) {
// let user = res.body
// store.dispatch(updateUser(user))
// })
// .catch(function (err) {
// if (err.status === 401) {
// auth.clear()
// if (window != null) window.location.reload()
// }
// console.error(err.message)
// console.log('Fetch failed')
// })
// }
})