| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -10,12 +10,9 @@ const invalidArgTypeError = { | |||
| 10 | 10 | name: 'TypeError' | |
| 11 | 11 | }; | |
| 12 | 12 | ||
| 13 | - let waitCommand = ''; | ||
| 14 | - if (common.isWindows) { | ||
| 15 | - waitCommand = 'TIMEOUT 120'; | ||
| 16 | - } else { | ||
| 17 | - waitCommand = 'sleep 2m'; | ||
| 18 | - } | ||
| 13 | + const waitCommand = common.isLinux ? | ||
| 14 | + 'sleep 2m' : | ||
| 15 | + `${process.execPath} -e "setInterval(()=>{}, 99)"`; | ||
| 19 | 16 | ||
| 20 | 17 | { | |
| 21 | 18 | const ac = new AbortController(); | |
| Back | FazBrowse Home | New Git URL |
0 commit comments