🎨 Simplify retry mechanism to get system version https://github.com/siyuan-note/siyuan/pull/10198

npm run lint
This commit is contained in:
Daniel 2024-01-20 23:09:40 +08:00
parent dc32cccf0e
commit 781e2276bf
No known key found for this signature in database
GPG key ID: 86211BA83DF03017

View file

@ -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();