1
0
mirror of https://github.com/Sonarr/Sonarr.git synced 2025-03-05 15:15:59 +02:00
Sonarr/gulp/phantom.js

14 lines
247 B
JavaScript
Raw Normal View History

2015-07-18 11:50:16 -07:00
// Switch to phantom.
// Example:
// gulp --phantom
var phantom = false;
process.argv.forEach(function (val, index, array) {
2015-07-21 19:42:38 -07:00
if (val === '--phantom') {
phantom = true;
}
});
2015-07-18 11:50:16 -07:00
2015-07-21 19:42:38 -07:00
console.log('Phantom:', phantom);
2015-07-18 11:50:16 -07:00
module.exports = phantom;