1
0
mirror of https://github.com/Sonarr/Sonarr.git synced 2024-12-16 11:37:58 +02:00
Sonarr/gulp/phantom.js

14 lines
254 B
JavaScript
Raw Normal View History

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