Skip to content

Commit

Permalink
make it usable with meteor
Browse files Browse the repository at this point in the history
- closes bestiejs#109
This is occurring because of the platform dependency of the react-share NPM. The platform package does the following to check for Node but since process is defined as an object because of the process module (a module that I believe is typical of all Meteor/Browserify/Webpack setups) it's inadvertently classifying itself as Node in this step and then failing when it tries to grab the numeric version of the process.version (which is just an empty string).
  • Loading branch information
sakulstra committed Oct 25, 2016
1 parent 7fbc576 commit dc6e1ce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion platform.js
Expand Up @@ -733,7 +733,7 @@
}
}
}
else if (typeof context.process == 'object' && (data = context.process)) {
else if (typeof context.process == 'object' && !context.process.browser && (data = context.process)) {
name = 'Node.js';
arch = data.arch;
os = data.platform;
Expand Down

0 comments on commit dc6e1ce

Please sign in to comment.