Skip to content

Commit

Permalink
Add the issue link
Browse files Browse the repository at this point in the history
  • Loading branch information
cheton committed Jun 16, 2016
1 parent 8eba2c5 commit f028c7b
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions index.js
@@ -1,12 +1,11 @@
// https://github.com/electron/electron/issues/2288
function isElectron() {
if (typeof window !== 'undefined' && window.process && window.process.type === 'renderer') {
return true;
}

if (typeof process !== 'undefined' && process.versions && !!process.versions.electron) {
return true;
}

return false;
}

Expand Down

0 comments on commit f028c7b

Please sign in to comment.