Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
Snippet of js to check if an Electron client
function isElectron() {
return (window.navigator.userAgent.indexOf("Electron") !== -1);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment