Skip to content

Commit

Permalink
[TIMOB-23834] Prevent mobileweb init when not targeting mobileweb
Browse files Browse the repository at this point in the history
  • Loading branch information
Gary Mathews committed Sep 3, 2016
1 parent 1bf7611 commit 1bfad0e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mobileweb/cli/hooks/windows.js
Expand Up @@ -27,7 +27,7 @@ const
exports.cliVersion = '>=3.2.1';

exports.init = function (logger, config, cli) {
if (process.platform !== 'win32') {
if (process.platform !== 'win32' || (cli.argv['p'] || cli.argv['platform']) !== 'mobileweb') {
return;
}

Expand Down

0 comments on commit 1bfad0e

Please sign in to comment.