fixed android metrics

This commit is contained in:
Danny Coates 2019-02-12 12:21:18 -08:00
parent 9b37e92a81
commit d50c0477ea
No known key found for this signature in database
GPG key ID: 4C442633C62E00CB

View file

@ -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);