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

Pass the current windowId to the subPanels #2899

Merged
merged 2 commits into from
Jun 1, 2021

Conversation

NiklasGollenstede
Copy link
Contributor

I could not figure out a generic way for the subPanel to determine the id of the window it is in, ouside situations where it happens to be known to be the currentWindow.

There would be multiple possible ways for TST to pass that information. As far as I can tell, there is no direct RPC between the subpanel content and the sidebar yet. A simple postMessage by the sidebar would be sub-optimal, because the panel content might not be listening yet.
So I figured a URL query parameter is a simple way to transfer this information.

This information expects the subPanel.url to be a valid URL.

@piroor
Copy link
Owner

piroor commented Jun 1, 2021

Thanks! This looks very reasonable change. Could you see my comment about the prefix?

@piroor piroor merged commit 6f19eae into piroor:trunk Jun 1, 2021
@piroor
Copy link
Owner

piroor commented Jun 1, 2021

Thanks again!

@NiklasGollenstede
Copy link
Contributor Author

Ok. Done.
Thanks for the feedback and review!

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.

2 participants