From 87aa0f65c358773392d0c33c82fa040d466845a9 Mon Sep 17 00:00:00 2001 From: Florian Dold Date: Thu, 14 Nov 2019 18:51:54 +0100 Subject: android: use akono module --- src/android/index.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/android/index.ts b/src/android/index.ts index b8bb77e0a..ab0d3f7b5 100644 --- a/src/android/index.ts +++ b/src/android/index.ts @@ -30,6 +30,9 @@ import axios from "axios"; import { HttpRequestLibrary, HttpResponse } from "../http"; import querystring = require("querystring"); +// @ts-ignore: special built-in module +import akono = require("akono"); + export class AndroidHttpLib implements HttpRequestLibrary { useNfcTunnel: boolean = false; @@ -99,7 +102,7 @@ export class AndroidHttpLib implements HttpRequestLibrary { export function installAndroidWalletListener() { // @ts-ignore - const sendMessage: (m: string) => void = global.__akono_sendMessage; + const sendMessage: (m: string) => void = akono.sendMessage; if (typeof sendMessage !== "function") { const errMsg = "FATAL: cannot install android wallet listener: akono functions missing"; -- cgit v1.2.3