Remove invalid requests during boot #10227
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
上文: 思源笔记前端启动时会对 80 端口发送 /api/system/bootProgress 请求
我发现在kernel启动过程中,
app/electron/boot.html
就是作为占位页面存在的,在kernel启动之后就会被替换成*/appearance/boot/index.html
。所以在boot.html
中获取的location.port
是空值,会导致前端一直请求 80 端口,移除这个页面的循环请求不会影响启动进程的显示。