Front end of the Slack clone application.

hasEmptyArgumentBug.js 431B

12345678910111213141516171819
  1. 'use strict';
  2. // See: https://github.com/IndigoUnited/node-cross-spawn/pull/34#issuecomment-221623455
  3. function hasEmptyArgumentBug() {
  4. var nodeVer;
  5. if (process.platform !== 'win32') {
  6. return false;
  7. }
  8. nodeVer = process.version.substr(1).split('.').map(function (num) {
  9. return parseInt(num, 10);
  10. });
  11. return (nodeVer[0] === 0 && nodeVer[1] < 12);
  12. }
  13. module.exports = hasEmptyArgumentBug();