parent
058cdaf468
commit
e652824fe3
Binary file not shown.
@ -1,21 +1,24 @@ |
|||||||
import { |
import * as api from "ng-sdk-js"; |
||||||
default as ng, |
import { default as ng } from "./api"; |
||||||
} from "./api"; |
|
||||||
|
|
||||||
onmessage = (e) => { |
//console.log("loaded worker");
|
||||||
console.log("Message received by worker", e.data); |
|
||||||
(async function() { |
onmessage = (e) => { |
||||||
try { |
//console.log("Message received by worker", e.data);
|
||||||
let secret_wallet = await ng.wallet_open_wallet_with_pazzle( |
(async function() { |
||||||
e.data.wallet, |
try { |
||||||
e.data.pazzle, |
let secret_wallet = await ng.wallet_open_wallet_with_pazzle( |
||||||
e.data.pin_code |
e.data.wallet, |
||||||
); |
e.data.pazzle, |
||||||
postMessage({success:secret_wallet}); |
e.data.pin_code |
||||||
} catch (e) { |
); |
||||||
postMessage({error:e}); |
postMessage({success:secret_wallet}); |
||||||
} |
} catch (e) { |
||||||
})(); |
postMessage({error:e}); |
||||||
}; |
} |
||||||
|
})(); |
||||||
|
}; |
||||||
|
|
||||||
|
postMessage({loaded:true}); |
||||||
|
|
||||||
|
|
Loading…
Reference in new issue