Skip to content

Commit b332cad

Browse files
authored
chore: Adjust null checking
1 parent feb018d commit b332cad

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -108,8 +108,8 @@ namespace Uno.WebAssembly.Bootstrap {
108108
.withConfig({ loadAllSatelliteResources: config.config.uno_loadAllSatelliteResources });
109109
}
110110

111-
var features = config.config.environmentVariables['UNO_BOOTSTRAP_MONO_RUNTIME_FEATURES'];
112-
if (features && features.includes('threads')) {
111+
var features = config.config.environmentVariables['UNO_BOOTSTRAP_MONO_RUNTIME_FEATURES'] || "";
112+
if (features.includes('threads')) {
113113
m.dotnet
114114
.withConfig({ jsThreadBlockingMode: "DangerousAllowBlockingWait" });
115115
}

0 commit comments

Comments
 (0)