Skip to content

Commit

Permalink
web: Don't log that we're falling back when not building dual-wasm
Browse files Browse the repository at this point in the history
  • Loading branch information
danielhjacobs committed Jan 14, 2025
1 parent 97e9ebb commit ce91845
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion web/packages/core/src/load-ruffle.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,10 @@ async function fetchRuffle(
])
).every(Boolean);

if (!extensionsSupported) {
// @ts-expect-error TS2367 %FALLBACK_WASM% gets replaced in set_version.ts.
// %FALLBACK_WASM% is "ruffle_web" if this is a dual-wasm build.
// We don't say we're falling back if we have only an extension build.
if (!extensionsSupported && "%FALLBACK_WASM%" === "ruffle_web") {
console.log(
"Some WebAssembly extensions are NOT available, falling back to the vanilla WebAssembly module",
);
Expand Down

0 comments on commit ce91845

Please sign in to comment.