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

Electron 30 support #169

Open
staniel359 opened this issue May 1, 2024 · 6 comments
Open

Electron 30 support #169

staniel359 opened this issue May 1, 2024 · 6 comments

Comments

@staniel359
Copy link

Hello.

Recently Electron API has changed, deprecating BrowserView and introducing WebContentsView instead.
But it can be used only with BaseWindow instead of BrowserWindow.

And now download(<BaseWindow>, url, options) gives me an error:

image

Are you planning to add Electron 30 compatibility?

@sindresorhus
Copy link
Owner

I believe this must be fixed in Electron. They need to support WebContentsView in BrowserWindow.fromWebContents. Then it will just work here. I recommend opening an issue on Electron.

@staniel359
Copy link
Author

@sindresorhus But could you add a support for BaseWindow as well?

@sindresorhus
Copy link
Owner

I guess what's missing then is a BaseWindow.fromWebContents() method. Because this package receives a WebContents when a download is about to start, and it has to be able to convert that back to a window.

@staniel359
Copy link
Author

@sindresorhus So you'll add it after Electron implements it?

@sindresorhus
Copy link
Owner

Yes

@staniel359
Copy link
Author

@sindresorhus Okay, thanks.

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

No branches or pull requests

2 participants