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;
}
}
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; } }