sdk icon indicating copy to clipboard operation
sdk copied to clipboard

Allow tonconnect/ui to be created twice

Open chrisands opened this issue 1 year ago • 1 comments
trafficstars

Currently every time TonConnectUI initialized it tries to add to customElements and when application changes pages and initialized second time it throws an error

Uncaught DOMException: Failed to execute 'define' on 'CustomElementRegistry': this name has already been used with this registry

I added condition to check if customElements exists.

Not sure, but probably should fix #171 Tested in Solidjs app.

chrisands avatar Jun 22 '24 23:06 chrisands

@thekiba rebased on main branch. Should be okay now.

chrisands avatar Jul 13 '24 15:07 chrisands