File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
src/connectors/webwallet/helpers Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -60,16 +60,16 @@ export const openWebwallet = async (
6060 const { allowedDapps } = await fetchAllowedDapps ( network )
6161
6262 if ( allowedDapps . includes ( window . location . hostname ) ) {
63- const modalId = "argent-webwallet-modal "
63+ const backdropId = "argent-webwallet-backdrop "
6464 const iframeId = "argent-webwallet-iframe"
6565
66- const existingModal = document . getElementById ( modalId )
66+ const existingBackdrop = document . getElementById ( backdropId )
6767 const existingIframe = document . getElementById ( iframeId )
6868
6969 // avoid duplicate iframes
70- if ( existingIframe && existingIframe && existingModal ) {
70+ if ( existingIframe && existingIframe && existingBackdrop ) {
7171 existingIframe . remove ( )
72- existingModal . remove ( )
72+ existingBackdrop . remove ( )
7373 }
7474 const { iframe, backdrop } = await createModal ( origin , false )
7575
You can’t perform that action at this time.
0 commit comments