diff options
author | Jonathan Buchanan <jonathan.russ.buchanan@gmail.com> | 2021-07-07 03:02:21 -0400 |
---|---|---|
committer | Jonathan Buchanan <jonathan.russ.buchanan@gmail.com> | 2021-07-07 03:02:21 -0400 |
commit | 7ca4230409a838d143a498b9ceeb5868de12e6f5 (patch) | |
tree | 36caac2a747e5f23539d7419e171dffe9147f52e /iono/iono.cpp | |
parent | f79f1ea181a04032818c98c367fece8222110d52 (diff) | |
download | iono-7ca4230409a838d143a498b9ceeb5868de12e6f5.tar.gz iono-7ca4230409a838d143a498b9ceeb5868de12e6f5.tar.bz2 iono-7ca4230409a838d143a498b9ceeb5868de12e6f5.zip |
change javascript-facing names to match taler-wallet-embedded
Diffstat (limited to 'iono/iono.cpp')
-rw-r--r-- | iono/iono.cpp | 6 |
1 files changed, 3 insertions, 3 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(); |