[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[taler-iono] branch master updated: change javascript-facing names to ma
From: |
gnunet |
Subject: |
[taler-iono] branch master updated: change javascript-facing names to match taler-wallet-embedded |
Date: |
Wed, 07 Jul 2021 09:02:48 +0200 |
This is an automated email from the git hooks/post-receive script.
jonathan-buchanan pushed a commit to branch master
in repository iono.
The following commit(s) were added to refs/heads/master by this push:
new 7ca4230 change javascript-facing names to match taler-wallet-embedded
7ca4230 is described below
commit 7ca4230409a838d143a498b9ceeb5868de12e6f5
Author: Jonathan Buchanan <jonathan.russ.buchanan@gmail.com>
AuthorDate: Wed Jul 7 03:02:21 2021 -0400
change javascript-facing names to match taler-wallet-embedded
---
iono/iono.cpp | 6 +++---
iono/iono.swift | 6 +++---
ios-node-v8 | 2 +-
3 files changed, 7 insertions(+), 7 deletions(-)
diff --git a/iono/iono.cpp b/iono/iono.cpp
index c101e45..cec96f1 100644
--- a/iono/iono.cpp
+++ b/iono/iono.cpp
@@ -133,8 +133,8 @@ static const std::string main_code = "const publicRequire ="
" global.eval(x);"
"};"
""
- "global.__iono_onMessage = (x) => {"
- " 0 && console.log('got
__iono_onMessage', x);"
+ "global.__native_onMessage = (x) => {"
+ " 0 && console.log('got
__native_onMessage', x);"
"};";
static void
@@ -198,7 +198,7 @@ __IonoInstance::__IonoInstance() :
v8::Local<v8::Object> global = setup->context()->Global();
- global->Set(setup->context(), v8::String::NewFromUtf8(isolate,
"__iono_sendMessage",
+ global->Set(setup->context(), v8::String::NewFromUtf8(isolate,
"__native_sendMessage",
v8::NewStringType::kNormal).ToLocalChecked(),
sendMessageFunction).Check();
_register_iono();
diff --git a/iono/iono.swift b/iono/iono.swift
index e4edb8a..23e0104 100644
--- a/iono/iono.swift
+++ b/iono/iono.swift
@@ -90,11 +90,11 @@ public class Iono {
public func sendMessage(message: String) {
let encoded = message.data(using: .utf8)!.base64EncodedString()
let source = """
- if (global.__iono_onMessage) {
+ if (global.__native_onMessage) {
const msg = (new Buffer('\(encoded)',
'base64')).toString('ascii');
- global.__iono_onMessage(msg);
+ global.__native_onMessage(msg);
} else {
- console.log("WARN: no __iono_onMessage defined");
+ console.log("WARN: no __native_onMessage defined");
}
"""
evalNodeCode(source: source)
diff --git a/ios-node-v8 b/ios-node-v8
index 029315b..c675b58 160000
--- a/ios-node-v8
+++ b/ios-node-v8
@@ -1 +1 @@
-Subproject commit 029315b48c8837b48e156f70a2362157716c8d32
+Subproject commit c675b58874610d06af659b8421ebc2d1e38efaab
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [taler-iono] branch master updated: change javascript-facing names to match taler-wallet-embedded,
gnunet <=