From 373d43dd8cbe0674977e86665d730d721b62f39c Mon Sep 17 00:00:00 2001 From: Peter Harpending Date: Sun, 9 Jul 2023 21:01:54 -0600 Subject: [PATCH] committing because commitment is good --- jrx/src/content.ts | 39 ++++++++++++++++++++------------------- 1 file changed, 20 insertions(+), 19 deletions(-) diff --git a/jrx/src/content.ts b/jrx/src/content.ts index b1e6ef1..5ad40dd 100644 --- a/jrx/src/content.ts +++ b/jrx/src/content.ts @@ -8,7 +8,6 @@ jr_main(); - /** * This is the "meat" of what is spammed to the page script when the user makes * the wallet detectable. @@ -69,24 +68,24 @@ sleep return new Promise(resolve => setTimeout(resolve, ms)); } -// -///** -// * This handles messages from *other parts of the extension* -// */ -//function -//handler -// (msg: any) -//{ -// console.error('message: ', msg); -// switch(msg) -// { -// case 'mk-detectable': -// mk_detectable(); -// return; -// default: -// console.error('your mom is dead'); -// } -//} + +/** + * This handles messages from *other parts of the extension* + */ +function +handler + (msg: any) +{ + console.error('message: ', msg); + switch(msg) + { + case 'mk-detectable': + mk_detectable(); + return; + default: + console.error('your mom is dead'); + } +} @@ -203,6 +202,7 @@ function bg_address_subscribe (msg_ident: string | number) { + } @@ -256,5 +256,6 @@ jr_main method : "connection.announcePresence", params : detect_msg()}}; + // mk detectable mk_detectable(detect_awcp_msg); }