What's the right way to restore initial zoom level of Electron app?

Viewed 20

I'm trying to set the initial zoom level for an Electron app. During a session the user may change zoom level, then when the app is closed and restarted this zoom level has to be restored. I tried using did-finish-load, dom-ready and some other related events to restore the zoom level when the app is initially loaded. Strangely, the only event that was consistently fired on application load was page-title-updated. But this seems too hacky.

What would be the right event to listen?

0 Answers
Related