Skip to content

Commit d71cf26

Browse files
authored
Merge pull request yabwe#1125 from sajus/master
yabwe#1123 Fixes issue with electron environment
2 parents a07ac0c + ce7c0d7 commit d71cf26

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/wrappers/start.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
(function (root, factory) {
22
'use strict';
3-
if (typeof module === 'object') {
3+
var isElectron = typeof module === 'object' && process && process.versions && process.versions.electron;
4+
if (!isElectron && typeof module === 'object') {
45
module.exports = factory;
56
} else if (typeof define === 'function' && define.amd) {
67
define(function () {

0 commit comments

Comments
 (0)