Close the bunker manually due to `using` not working
This commit is contained in:
parent
9faf9942a9
commit
46687a0a02
|
@ -20,7 +20,7 @@ function logInNostr(signer: NostrSigner, relay: NRelay1) {
|
||||||
|
|
||||||
let authorizedPubkey: string | undefined;
|
let authorizedPubkey: string | undefined;
|
||||||
|
|
||||||
using bunker = new NBunker({
|
const bunker = new NBunker({
|
||||||
relay,
|
relay,
|
||||||
userSigner: signer,
|
userSigner: signer,
|
||||||
bunkerSigner: authorization.signer,
|
bunkerSigner: authorization.signer,
|
||||||
|
@ -61,6 +61,9 @@ function logInNostr(signer: NostrSigner, relay: NRelay1) {
|
||||||
});
|
});
|
||||||
|
|
||||||
await dispatch(verifyCredentials(accessToken));
|
await dispatch(verifyCredentials(accessToken));
|
||||||
|
|
||||||
|
// TODO: get rid of `vite-plugin-require` and switch to `using` for the bunker. :(
|
||||||
|
bunker.close();
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue