mirror of
https://github.com/louislam/uptime-kuma.git
synced 2024-12-26 14:09:45 -08:00
Prevent terminal window from showing when using ping on Windows (#2152)
This commit is contained in:
parent
afbc283423
commit
f1a9046193
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue