Skip to content
代码片段 群组 项目
未验证 提交 e51948e4 编辑于 作者: Mackinnon Buck's avatar Mackinnon Buck 提交者: GitHub
浏览文件

Fixed boot config issue. (#41976) (#41992)

上级 f9e44c92
No related branches found
No related tags found
无相关合并请求
......@@ -12,9 +12,15 @@ export class BootConfigResult {
loadBootResource('manifest', 'blazor.boot.json', '_framework/blazor.boot.json', '') :
defaultLoadBlazorBootJson('_framework/blazor.boot.json');
const bootConfigResponse = loaderResponse instanceof Promise ?
await loaderResponse :
await defaultLoadBlazorBootJson(loaderResponse ?? '_framework/blazor.boot.json');
let bootConfigResponse: Response;
if (!loaderResponse) {
bootConfigResponse = await defaultLoadBlazorBootJson('_framework/blazor.boot.json');
} else if (typeof loaderResponse === 'string') {
bootConfigResponse = await defaultLoadBlazorBootJson(loaderResponse);
} else {
bootConfigResponse = await loaderResponse;
}
// While we can expect an ASP.NET Core hosted application to include the environment, other
// hosts may not. Assume 'Production' in the absence of any specified value.
......
0% 加载中 .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册