Files

13 lines
246 B
TypeScript
Raw Permalink Normal View History

2019-09-05 17:17:33 +02:00
import open from 'open';
2017-03-12 21:20:43 +01:00
2022-03-18 02:15:17 +01:00
export let openUrl = async (urlArg: string) => {
2019-04-16 08:26:16 +02:00
if (!(process.env.CI === 'true')) {
const childProcess = await open(urlArg, {
2022-03-18 02:15:17 +01:00
wait: false,
});
return childProcess;
} else {
2019-04-16 08:26:16 +02:00
return null;
}
};