Skip to content
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

fix: no errors on panel load #198

Draft
wants to merge 12 commits into
base: sidepanel
Choose a base branch
from

Conversation

frontendphil
Copy link
Collaborator

@frontendphil frontendphil commented Nov 1, 2024

Something I don't quite understand happens when you switch between tabs. This led to us losing a proper connection to the page. Now, when the active page changes, the connect provider disconnects the current port.

I've also split the setup for the communication between extension <-> contentScript <-> iframe. First, the extension and content script perform a handshake. This is done by repeatedly trying to create a port to the contentScript. Only if this happens successfully will we try also to perform the handshake with the iframe. The iframe now also sends out the init message repeatedly. Something that can probably be improved.

  • ensure that listener for for init events does not try to use a disconnected port

Copy link

vercel bot commented Nov 1, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
zodiac-pilot-example-app ✅ Ready (Inspect) Visit Preview 💬 Add feedback Nov 1, 2024 4:39pm

Copy link

cloudflare-workers-and-pages bot commented Nov 1, 2024

Deploying zodiac-pilot-connect with  Cloudflare Pages  Cloudflare Pages

Latest commit: 46b1f46
Status: ✅  Deploy successful!
Preview URL: https://5913935b.zodiac-pilot.pages.dev
Branch Preview URL: https://fix-no-errors-on-panel-load.zodiac-pilot.pages.dev

View logs

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

Successfully merging this pull request may close these issues.

1 participant