This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// @flow | |
import store from '../store'; | |
import getCookie from './Cookie/get'; | |
export default () => { | |
const { isLoggedIn, profile } = store.get('player').getState(); | |
if (isLoggedIn) { | |
if (!profile || (!profile.id && !profile.tag)) { | |
return null; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div id="app"></div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const intervals = (() => { | |
/** | |
setInterval watcher | |
**/ | |
const setIntervalCounter = []; | |
const setIntervalMap = {}; | |
let startTime = Date.now(); | |
let lastTime = startTime; | |
setInterval(() => { | |
const now = Date.now(); |
OlderNewer