aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlorian Dold <florian.dold@gmail.com>2019-11-14 18:51:54 +0100
committerFlorian Dold <florian.dold@gmail.com>2019-11-14 18:51:54 +0100
commit87aa0f65c358773392d0c33c82fa040d466845a9 (patch)
treedc1d7f5632f07849fc2a6b81c42df7c9bf30642d
parent25c68d44872bf285a9dfb65f3a7234fb5e99583c (diff)
android: use akono module
-rw-r--r--src/android/index.ts5
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";