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: Patch registerSchemesAsPrivileged so sentry scheme isn't overwritten #787

Merged
merged 2 commits into from
Nov 30, 2023

Conversation

timfish
Copy link
Collaborator

@timfish timfish commented Nov 30, 2023

Closes #661

This fix patches the Electron registerSchemesAsPrivileged function so that subsequent calls by user code don't overwrite the Sentry scheme.

Unfortunately this Electron API only respects the last schemes passed before app ready and doesn't warn if called multiple times.

src/main/ipc.ts Outdated Show resolved Hide resolved
@timfish timfish enabled auto-merge (squash) November 30, 2023 14:42
@timfish timfish merged commit c098afa into getsentry:master Nov 30, 2023
41 checks passed
@timfish timfish deleted the fix/scheme-override branch December 13, 2023 09:13
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.

Sentry breaks custom protocols because it calls registerSchemesAsPrivileged which can be called only once
2 participants