Skip to content

Presenter: auto-reconnect when the presenter window is refreshed#8

Open
LeaVerou wants to merge 1 commit into
mainfrom
claude/presenter-mode-window-refresh-cx6rb5
Open

Presenter: auto-reconnect when the presenter window is refreshed#8
LeaVerou wants to merge 1 commit into
mainfrom
claude/presenter-mode-window-refresh-cx6rb5

Conversation

@LeaVerou

Copy link
Copy Markdown
Contributor

The projector window already reconnected on refresh via its persistent
window.name ("projector") and window.opener reference. The presenter
window had neither, so refreshing it lost the link to the projector and
required pressing Ctrl+P again.

Name the presenter window "presenter" when entering presenter mode so
that on reload it can identify itself and re-acquire the existing
projector via a named-window lookup (open("", "projector")), which
returns the existing window without reloading it. Both windows now
reconnect automatically on refresh and re-link each other's references.

The projector window already reconnected on refresh via its persistent
window.name ("projector") and window.opener reference. The presenter
window had neither, so refreshing it lost the link to the projector and
required pressing Ctrl+P again.

Name the presenter window "presenter" when entering presenter mode so
that on reload it can identify itself and re-acquire the existing
projector via a named-window lookup (open("", "projector")), which
returns the existing window without reloading it. Both windows now
reconnect automatically on refresh and re-link each other's references.
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