Skip to content
This repository has been archived by the owner on Oct 7, 2024. It is now read-only.

LedgerIframeBridge.destroy does not remove the iframe from document #237

Open
mikesposito opened this issue Jul 25, 2024 · 0 comments
Open

Comments

@mikesposito
Copy link
Member

The LedgerIframeBridge.destroy method does not destroy/remove the iframe from the document: when calling destroy and then init again, the document will have two Ledger iframes, which could lead to unexpected behavior. Because of this, the default behaviour of setOptions is duplicating the current iframe.

We should remove the current iframe from the document when destroy is called.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant