-
Notifications
You must be signed in to change notification settings - Fork 35
upgrade electron #472
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
upgrade electron #472
Conversation
Ran `yarn add electron`
3ee1e41 to
a6c59e6
Compare
I couldn't get the application to run unless I unset contextIsolation. So here is the application split into preload and node files. Makes iterop a bit more painful. But everything seems to work, at least as far as I tested. I think the interop stuff makes error logging a bit painful, so I may have missed the mark a bit. I can say for certain that clicking notifications works as expected. The mutation observer stuff I'm a little less clear on. (But the functions are called when I used console.log statements). I completely removed the profileImage stuff, it doesn't appear to be necessary. Maybe its just Linux, but the notification rendered the NotificationsOptions.icon that was provided by the google SPA just fine without all the cache code.
a6c59e6 to
a081158
Compare
|
Oh yeah, I only tested on Linux (Sway window manager). So other linux testers and Mac + windows is welcome. |
|
Thanks for the heads up I'll try this on a Mac and I'll let you know how it works. |
|
👀 Thanks for the contribution. I will look this over tonight. I have tried and failed to upgrade the version a few times. I did not know about this new way of doing things. I have approved the workflows so people can easily test. I have only done a quick skim of the code. Have not reviewed 100 percent thoroughly so buyer beware. |
Yeah for the life of me I could not figure out why it didn't just work with They have some docs talking about context isolation, and related is sandboxing:
Nothing I found points to context isolation being deprecated, so I'm really not sure why all this was necessary. I would have expected it to work the same. 🤷 |
|
Thanks for merging my PR :) |
I couldn't get the application to run unless I unset contextIsolation.
So here is the application split into preload and node files.
Makes iterop a bit more painful. But everything seems to work, at least
as far as I tested. I think the interop stuff makes error logging a bit
painful, so I may have missed the mark a bit. I can say for certain that
clicking notifications works as expected. The mutation observer stuff
I'm a little less clear on. (But the functions are called when I used
console.log statements).
I completely removed the profileImage stuff, it doesn't appear to be
necessary. Maybe its just Linux, but the notification rendered the
NotificationsOptions.icon that was provided by the google SPA just
fine without all the cache code.