mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-07-03 14:09:06 +02:00
🎨 Simplify retry mechanism to get system version https://github.com/siyuan-note/siyuan/pull/10198
npm run lint
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user