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 popout windows, cache BrowserWindowProxy #11

Merged
merged 2 commits into from
Mar 13, 2022
Merged

Conversation

Strencher
Copy link
Contributor

@Strencher Strencher commented Mar 13, 2022

Fixes kernel failing to inject into windows opened by window.open. Unfortunately I couldn't find a way to access the windowOptions to restore kernelWindowData on the webContents of those windows, but I added a workaround using a electron internal API. I also added a cache for the BrowserWindowProxy so it won't be re-created each time.

@Strencher Strencher requested a review from Kyza March 13, 2022 03:31
src/core/patchers/BrowserWindowPatcher.ts Show resolved Hide resolved
src/core/patchers/BrowserWindowPatcher.ts Outdated Show resolved Hide resolved
@Kyza Kyza merged commit a203999 into kernel-mod:dev Mar 13, 2022
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