fixed android metrics
This commit is contained in:
parent
9b37e92a81
commit
d50c0477ea
1 changed files with 2 additions and 2 deletions
|
@ -45,7 +45,6 @@ if (navigator.userAgent === 'Send Android') {
|
||||||
|
|
||||||
const app = choo();
|
const app = choo();
|
||||||
//app.use(state);
|
//app.use(state);
|
||||||
app.use(metrics);
|
|
||||||
app.use(controller);
|
app.use(controller);
|
||||||
app.use(intents);
|
app.use(intents);
|
||||||
|
|
||||||
|
@ -79,7 +78,7 @@ function body(main) {
|
||||||
}
|
}
|
||||||
(async function start() {
|
(async function start() {
|
||||||
const translate = await getTranslator('en-US');
|
const translate = await getTranslator('en-US');
|
||||||
app.use(async (state, emitter) => {
|
app.use((state, emitter) => {
|
||||||
state.translate = translate;
|
state.translate = translate;
|
||||||
state.capabilities = {
|
state.capabilities = {
|
||||||
account: true
|
account: true
|
||||||
|
@ -99,6 +98,7 @@ function body(main) {
|
||||||
window.appState = state;
|
window.appState = state;
|
||||||
window.appEmit = emitter.emit.bind(emitter);
|
window.appEmit = emitter.emit.bind(emitter);
|
||||||
});
|
});
|
||||||
|
app.use(metrics);
|
||||||
app.route('/', body(home));
|
app.route('/', body(home));
|
||||||
app.route('/upload', upload);
|
app.route('/upload', upload);
|
||||||
app.route('/share/:id', share);
|
app.route('/share/:id', share);
|
||||||
|
|
Loading…
Reference in a new issue