From d50c0477eab63535324b8cb23c7e35de9e1e9807 Mon Sep 17 00:00:00 2001 From: Danny Coates Date: Tue, 12 Feb 2019 12:21:18 -0800 Subject: [PATCH] fixed android metrics --- android/android.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/android/android.js b/android/android.js index 723b0711..c40c11eb 100644 --- a/android/android.js +++ b/android/android.js @@ -45,7 +45,6 @@ if (navigator.userAgent === 'Send Android') { const app = choo(); //app.use(state); -app.use(metrics); app.use(controller); app.use(intents); @@ -79,7 +78,7 @@ function body(main) { } (async function start() { const translate = await getTranslator('en-US'); - app.use(async (state, emitter) => { + app.use((state, emitter) => { state.translate = translate; state.capabilities = { account: true @@ -99,6 +98,7 @@ function body(main) { window.appState = state; window.appEmit = emitter.emit.bind(emitter); }); + app.use(metrics); app.route('/', body(home)); app.route('/upload', upload); app.route('/share/:id', share);