Implementing NSApplicationDelegate.applicationSupportsSecureRestorableState

381 Views Asked by At

When I use npm start to test my first Electron app on MacOS Sonoma (14.2.1), I get this warning in the Terminal:

Electron[79515:993116] WARNING: Secure coding is automatically enabled for restorable state! However, not on all supported macOS versions of this application. Opt-in to secure coding explicitly by implementing NSApplicationDelegate.applicationSupportsSecureRestorableState:.

What exactly do I need to do to implement this?

0

There are 0 best solutions below