mirror of
https://github.com/louislam/uptime-kuma.git
synced 2024-12-23 07:33:52 -06: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 New Issue
Block a user