Skip to content

Commit 1f194ca

Browse files
committed
chore: Adjust references to dotnet.boot.js
1 parent 077cf0b commit 1f194ca

File tree

3 files changed

+3
-4
lines changed

3 files changed

+3
-4
lines changed

src/Uno.Wasm.Bootstrap/Embedded/service-worker.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,14 +33,14 @@ if (unoConfig.environmentVariables["UNO_BOOTSTRAP_DEBUGGER_ENABLED"] !== "True")
3333
// existing cached content from the runtime as the keys contain a
3434
// hash we cannot reliably compute.
3535
try {
36-
var c = await fetch("$(REMOTE_WEBAPP_PATH)_framework/blazor.boot.json");
36+
var c = await import("$(REMOTE_WEBAPP_PATH)_framework/dotnet.boot.js");
3737
// Response validation to catch HTTP errors early
3838
// This prevents trying to parse invalid JSON from error responses
3939
if (!c.ok) {
4040
throw new Error(`Failed to fetch blazor.boot.json: ${c.status} ${c.statusText}`);
4141
}
4242

43-
const bootJson = await c.json();
43+
const bootJson = await c.default.config;
4444
const monoConfigResources = bootJson.resources || {};
4545

4646
var entries = {

src/Uno.Wasm.Bootstrap/ShellTask.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -546,7 +546,7 @@ private void GenerateConfig()
546546
.Select(f => f.GetMetadata("Link")
547547
.Replace("\\", "/")
548548
.Replace("wwwroot/", ""))
549-
.Concat([$"uno-config.js", "_framework/blazor.boot.json", "."]);
549+
.Concat([$"uno-config.js", "_framework/dotnet.boot.js", "."]);
550550

551551
var offlineFiles = enablePWA ? string.Join(", ", sanitizedOfflineFiles.Select(f => $"\"{WebAppBasePath}{f}\"")) : "";
552552

src/Uno.Wasm.Bootstrap/ts/Uno/WebAssembly/Bootstrapper.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,6 @@ namespace Uno.WebAssembly.Bootstrap {
4747
this._appBase = this._unoConfig.environmentVariables["UNO_BOOTSTRAP_APP_BASE"];
4848

4949
this.disableDotnet6Compatibility = false;
50-
this.configSrc = `blazor.boot.json`;
5150
this.onConfigLoaded = config => this.configLoaded(config);
5251
this.onDotnetReady = () => this.RuntimeReady();
5352

0 commit comments

Comments
 (0)