0
0
mirror of https://github.com/louislam/uptime-kuma.git synced 2024-11-30 23:10:41 +01:00

Prevent terminal window from showing when using ping on Windows (#2152)

This commit is contained in:
Sympatron GmbH 2022-10-04 15:30:19 +00:00 committed by GitHub
parent afbc283423
commit f1a9046193
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -105,7 +105,7 @@ Ping.prototype.send = function (callback) {
let _exited;
let _errored;
this._ping = spawn(this._bin, this._args); // spawn the binary
this._ping = spawn(this._bin, this._args, { windowsHide: true }); // spawn the binary
this._ping.on("error", function (err) { // handle binary errors
_errored = true;