🎨 Simplify retry mechanism to get system version https://github.com/siyuan-note/siyuan/pull/10198
npm run lint
This commit is contained in:
parent
dc32cccf0e
commit
781e2276bf
1 changed files with 1 additions and 1 deletions
|
@ -543,7 +543,7 @@ const initKernel = (workspace, port, lang) => {
|
|||
let apiData;
|
||||
let count = 0;
|
||||
writeLog("checking kernel version");
|
||||
while (true) {
|
||||
for (; ;) {
|
||||
try {
|
||||
const apiResult = await net.fetch(getServer() + "/api/system/version");
|
||||
apiData = await apiResult.json();
|
||||
|
|
Loading…
Add table
Reference in a new issue