We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I wanted to repeat the lesson https://www.youtube.com/watch?v=2RxHQoiDctI But there is used remote I already know that this is a deprecated method, but I want to finish.
I need to close the second window. It closes itself. var window = remote.getCurrentWindow(); window.close();
I've included @electron/remote in main, but I can't get remote here.
main.js require("@electron/remote/main").initialize(); require("@electron/remote/main").enable(win.webContents);
But in the second window it does not work and the browser swears. It tells me to write this code, but that doesn't help either.
const remote = require("@electron/remote") require("@electron/remote/main").enable(webContents)
webContents is not defined
The text was updated successfully, but these errors were encountered:
Same here
Sorry, something went wrong.
No branches or pull requests
I wanted to repeat the lesson https://www.youtube.com/watch?v=2RxHQoiDctI
But there is used remote
I already know that this is a deprecated method, but I want to finish.
I need to close the second window. It closes itself.
var window = remote.getCurrentWindow();
window.close();
I've included @electron/remote in main, but I can't get remote here.
main.js
require("@electron/remote/main").initialize();
require("@electron/remote/main").enable(win.webContents);
But in the second window it does not work and the browser swears. It tells me to write this code, but that doesn't help either.
const remote = require("@electron/remote")
require("@electron/remote/main").enable(webContents)
webContents is not defined
The text was updated successfully, but these errors were encountered: