cleanup
cleanup()
Cleans up browser resources associated with the wallet. This should be called when the wallet is no longer needed.
ts
import { FedimintWallet } from '@fedimint/core-web'
const wallet = new FedimintWallet()
await wallet.open()
// ... use the wallet
// Once we're no longer using the wallet,
// we can call cleanup to free up resources
await wallet.cleanup()
// If we want to use the wallet again, we can call open() again
await wallet.open()