This commit is contained in:
@@ -4,9 +4,10 @@
|
||||
|
||||
import * as riot from 'riot';
|
||||
import * as route from 'page';
|
||||
import MiOS from '../common/mios';
|
||||
let page = null;
|
||||
|
||||
export default me => {
|
||||
export default (mios: MiOS) => {
|
||||
route('/', index);
|
||||
route('/selectdrive', selectDrive);
|
||||
route('/i/notifications', notifications);
|
||||
@@ -32,7 +33,7 @@ export default me => {
|
||||
route('*', notFound);
|
||||
|
||||
function index() {
|
||||
me ? home() : entrance();
|
||||
mios.isSignedin ? home() : entrance();
|
||||
}
|
||||
|
||||
function home() {
|
||||
|
@@ -8,14 +8,15 @@ import './style.styl';
|
||||
require('./tags');
|
||||
import init from '../init';
|
||||
import route from './router';
|
||||
import MiOS from '../common/mios';
|
||||
|
||||
/**
|
||||
* init
|
||||
*/
|
||||
init(me => {
|
||||
init((mios: MiOS) => {
|
||||
// http://qiita.com/junya/items/3ff380878f26ca447f85
|
||||
document.body.setAttribute('ontouchstart', '');
|
||||
|
||||
// Start routing
|
||||
route(me);
|
||||
route(mios);
|
||||
});
|
||||
|
Reference in New Issue
Block a user