diff options
author | Florian Dold <florian.dold@gmail.com> | 2019-11-14 18:51:54 +0100 |
---|---|---|
committer | Florian Dold <florian.dold@gmail.com> | 2019-11-14 18:51:54 +0100 |
commit | 87aa0f65c358773392d0c33c82fa040d466845a9 (patch) | |
tree | dc1d7f5632f07849fc2a6b81c42df7c9bf30642d | |
parent | 25c68d44872bf285a9dfb65f3a7234fb5e99583c (diff) |
android: use akono module
-rw-r--r-- | src/android/index.ts | 5 |
1 files changed, 4 insertions, 1 deletions
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"; |