From 34a3a4a5b896bf12a0424cba8f1fa5d6ce5bc69e Mon Sep 17 00:00:00 2001 From: Wei Lin Date: Fri, 4 Sep 2026 14:03:27 +0800 Subject: [PATCH] fix: register Blazor root component Restore the App root component registration so the WebAssembly converter mounts into #app instead of remaining on the static Loading screen. --- MiniPdf.Web/MiniPdf.Web.Client/Program.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/MiniPdf.Web/MiniPdf.Web.Client/Program.cs b/MiniPdf.Web/MiniPdf.Web.Client/Program.cs index f6c7dfbb..569c779a 100644 --- a/MiniPdf.Web/MiniPdf.Web.Client/Program.cs +++ b/MiniPdf.Web/MiniPdf.Web.Client/Program.cs @@ -4,6 +4,7 @@ using MiniPdf.Web.Client; var builder = WebAssemblyHostBuilder.CreateDefault(args); +builder.RootComponents.Add("#app"); builder.Services.AddScoped(sp => new HttpClient { BaseAddress = new Uri(builder.HostEnvironment.BaseAddress) }); builder.Services.AddSingleton();