-
Notifications
You must be signed in to change notification settings - Fork 3.5k
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
Update window creation #2028
Update window creation #2028
Conversation
app/ui/window.js
Outdated
|
||
module.exports = class Window extends BrowserWindow { | ||
constructor(opts, cfg, fn) { | ||
opts = Object.assign({ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This could be rewritten immutable (using const only)
app/ui/window.js
Outdated
}); | ||
|
||
rpc.on('new', opts => { | ||
opts = Object.assign({ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same here (immutable, const)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A step in the right direction 😄 We need to break up all the rpc handling to make the bindings less messy, but that's ok for another PR, as this lays the groundwork for further cleanup!
Regression introduced by vercel#2028
Regression introduced by vercel#2028
Regression introduced by vercel#2028
Change