how to check whether we are running on electron or browser
How to check whether we are running on Electron or Browser
If you are developing a desktop application using Electron, there may arise situations where you need to run different code based on whether your application is running on Electron or a browser. Here are a few ways to check