Skip to content

Conversation

@ElementalWarrior
Copy link

@ElementalWarrior ElementalWarrior commented Nov 19, 2024

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.

Ran `yarn add electron`
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.
@ElementalWarrior
Copy link
Author

Oh yeah, I only tested on Linux (Sway window manager). So other linux testers and Mac + windows is welcome.

@LanikSJ
Copy link

LanikSJ commented Nov 19, 2024

Thanks for the heads up I'll try this on a Mac and I'll let you know how it works.

@OrangeDrangon
Copy link
Owner

OrangeDrangon commented Nov 19, 2024

👀

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.

@ElementalWarrior
Copy link
Author

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.

Yeah for the life of me I could not figure out why it didn't just work with contextIsolation: false.

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. 🤷

@OrangeDrangon OrangeDrangon merged commit 3cf7dbe into OrangeDrangon:master Nov 20, 2024
6 checks passed
@OrangeDrangon OrangeDrangon linked an issue Nov 20, 2024 that may be closed by this pull request
@ElementalWarrior ElementalWarrior deleted the upgrade-electron branch November 21, 2024 17:27
@ElementalWarrior
Copy link
Author

Thanks for merging my PR :)

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.

Site Does not Load on Latest Electron

3 participants