-
Notifications
You must be signed in to change notification settings - Fork 22
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feat/iframe extension connect #86
Feat/iframe extension connect #86
Conversation
da01a5a
to
a89cee0
Compare
8136a27
to
3434c8c
Compare
This commit introduces new messages that allow the web dApp to establish a session by sending messages to the parent extension. In case an iframe is detected but no connection is established, the dApp will send a message to the parent extension to initiate a connection. Signed-off-by: Fran Fernandez <fran@kabila.app>
Signed-off-by: Fran Fernandez <fran@kabila.app>
3434c8c
to
e6e3a06
Compare
Signed-off-by: Fran Fernandez <fran@kabila.app>
I have added support for this feature in the demo. Attached is a video demonstrating its behaviour within an iframe inside the extension. iframe-extension.mov |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 👍
Just some small tweaks to docs and parameter name consistency.
@@ -128,8 +130,9 @@ export class DAppConnector { | |||
}) | |||
const existingSessions = this.walletConnectClient.session.getAll() | |||
|
|||
if (existingSessions) | |||
if (existingSessions.length > 0) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good spot 👍
Co-authored-by: Justyn Spooner <justynjj@gmail.com> Signed-off-by: Fran Fernández <franfernandez20@gmail.com>
Co-authored-by: Justyn Spooner <justynjj@gmail.com> Signed-off-by: Fran Fernández <franfernandez20@gmail.com>
Co-authored-by: Justyn Spooner <justynjj@gmail.com> Signed-off-by: Fran Fernández <franfernandez20@gmail.com>
Co-authored-by: Justyn Spooner <justynjj@gmail.com> Signed-off-by: Fran Fernández <franfernandez20@gmail.com>
Thank you for the corrections 🙏 . All of them have been applied. |
Looking forward to this commit being approved! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm, thanks for the contribution!
Description:
This commit introduces new messages that allow the web dApp to establish a session by sending messages to the parent extension.
Checklist