Skip to content

Commit 7201bf6

Browse files
Remove unnecessary warnings
1 parent 0741d10 commit 7201bf6

1 file changed

Lines changed: 6 additions & 4 deletions

File tree

public/ui.js

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -115,12 +115,14 @@ async function loadWasm() {
115115
const module = await WebAssembly.compile(bytes);
116116
const importObject = buildWasmImportObject(module);
117117
const instance = await WebAssembly.instantiate(module, importObject);
118-
if (!validateWasmExports(instance.exports)) {
119-
throw new Error("Exports WASM incompatibles avec l'interface Cellcosmos.");
120-
}
121118
wasm = instance.exports;
122119
wasmAvailable = true;
123-
status.textContent = "Moteur WASM charg\u00e9 depuis les sources Multilingual.";
120+
if (validateWasmExports(instance.exports)) {
121+
status.textContent = "Moteur WASM charg\u00e9 depuis les sources Multilingual.";
122+
} else {
123+
status.textContent = "Moteur WASM charge partiellement, avec repli JavaScript selon les fonctions disponibles.";
124+
console.warn("Exports WASM partiellement compatibles avec l'interface Cellcosmos.");
125+
}
124126
} catch (error) {
125127
wasm = null;
126128
wasmAvailable = false;

0 commit comments

Comments
 (0)