Servoy / electron

MIT License
2 stars 3 forks source link

New feature request - isElectronClient function #7

Open jorgesedavi opened 6 years ago

jorgesedavi commented 6 years ago

It would be nice to have a isElectronClient function on the electron plugin, in order to know if the running application is on an NGClient or in a ElectronClient. Using this, the same application could be used on both clients, and the special functionality not available on NG would give a message indicating you are not able to do that.

This could be achieved easily by a new function on the spec and js: isElectronClient: function(){ if(typeof ipcRenderer !== 'undefined') { return true; } else { return false; } }

seanthomasdevlin commented 6 years ago

Thanks for the feedback. We can add this to the plugin in the next release.