Skip to content

fix(app): allow window close when beforeunload handler is active#23

Merged
flexiondotorg merged 1 commit intomainfrom
close
Mar 23, 2026
Merged

fix(app): allow window close when beforeunload handler is active#23
flexiondotorg merged 1 commit intomainfrom
close

Conversation

@flexiondotorg
Copy link
Copy Markdown
Member

Apple Music registers a beforeunload event handler while audio is playing, which silently blocks window close attempts. Override this via the will-prevent-unload event to allow graceful shutdown regardless of playback state.

Apple Music registers a beforeunload event handler while audio is
playing, which silently blocks window close attempts. Override this via
the will-prevent-unload event to allow graceful shutdown regardless of
playback state.

Signed-off-by: Martin Wimpress <code@wimpress.io>
Copy link
Copy Markdown
Contributor

@cubic-dev-ai cubic-dev-ai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No issues found across 3 files

@flexiondotorg flexiondotorg merged commit 8803b27 into main Mar 23, 2026
10 checks passed
@flexiondotorg flexiondotorg deleted the close branch March 23, 2026 03:03
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