Commit b7162f52 authored by Philipp Nowinski's avatar Philipp Nowinski
Browse files

[BUGFIX] add small timeout to ensure proper order

parent ef573866
......@@ -10,8 +10,11 @@ if (yargs._.length > 1) {
if (config.hasOwnProperty('open')) {
let sites = yargs._[1];
if (config.open.hasOwnProperty(sites)) {
let index = 0;
config.open[sites].forEach(site => {
open(site);
setTimeout(() => {
open(site);
}, 100 * index++);
});
} else {
console.log(chalk.red(`The desired entry ${sites} could not be found in your .sgc-config.json!`));
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment