Skip to content

Commit

Permalink
Merge pull request #1125 from sajus/master
Browse files Browse the repository at this point in the history
#1123 Fixes issue with electron environment
  • Loading branch information
j0k3r committed Jun 20, 2016
2 parents a07ac0c + ce7c0d7 commit d71cf26
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/wrappers/start.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
(function (root, factory) {
'use strict';
if (typeof module === 'object') {
var isElectron = typeof module === 'object' && process && process.versions && process.versions.electron;
if (!isElectron && typeof module === 'object') {
module.exports = factory;
} else if (typeof define === 'function' && define.amd) {
define(function () {
Expand Down

0 comments on commit d71cf26

Please sign in to comment.