Skip to content

Commit d24d66c

Browse files
committed
fix ndef
1 parent 1f4841a commit d24d66c

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

assets_js_bitrequest_sockets.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -252,14 +252,14 @@ function lightning_socket(lnd) {
252252

253253
// Handles NFC (Near Field Communication) functionality for Lightning Network payments
254254
async function ln_ndef(proxy_host, pk, pid, nid, imp) {
255-
if (!glob_let.ndef) return;
255+
if (!glob_const.ndef) return;
256256
glob_let.ndef_processing = false;
257257
try {
258258
ndef_controller();
259-
await glob_let.ndef.scan({
259+
await glob_const.ndef.scan({
260260
"signal": glob_let.ctrl.signal
261261
});
262-
glob_let.ndef.onreading = event => {
262+
glob_const.ndef.onreading = event => {
263263
if ((now() - 6000) < glob_let.ndef_timer) { // prevent too many taps
264264
playsound(glob_const.funk);
265265
notify(translate("ndeftablimit"), 6000);
@@ -479,7 +479,7 @@ function ndef_controller() {
479479

480480
// Aborts the NFC operation
481481
function abort_ndef() {
482-
if (glob_let.ndef && glob_let.ctrl) {
482+
if (glob_const.ndef && glob_let.ctrl) {
483483
glob_let.ctrl.abort();
484484
glob_let.ctrl = null;
485485
}

assets_js_lib_global_queries.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,6 @@ const br_bipobj = br_get_local("bpdat", true),
143143
"bipobj": br_bipobj,
144144
"hasbip": br_hasbip,
145145
"bipid": br_bipid,
146-
"ndef": false,
147146
"ctrl": false,
148147
"cashier_dat": br_cashier_dat,
149148
"is_cashier": br_is_cashier,

0 commit comments

Comments
 (0)