mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-18 15:40:12 +01:00
🎨 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 apiData;
|
||||||
let count = 0;
|
let count = 0;
|
||||||
writeLog("checking kernel version");
|
writeLog("checking kernel version");
|
||||||
while (true) {
|
for (; ;) {
|
||||||
try {
|
try {
|
||||||
const apiResult = await net.fetch(getServer() + "/api/system/version");
|
const apiResult = await net.fetch(getServer() + "/api/system/version");
|
||||||
apiData = await apiResult.json();
|
apiData = await apiResult.json();
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue