Skip to content

Commit 8452c3c

Browse files
authored
fix(augurs): fallback if wasm fails (#1757)
1 parent ae8e728 commit 8452c3c

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/module.tsx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,11 @@ const App = lazy(async () => {
2626
initRuntimeDs();
2727

2828
if (wasmSupported()) {
29-
await Promise.all([initChangepoint(), initOutlier()]);
29+
try {
30+
await Promise.all([initChangepoint(), initOutlier()]);
31+
} catch (e) {
32+
console.warn('grafana-lokiexplore-app: WebAssembly init failed, ML sorting disabled.', e);
33+
}
3034
}
3135

3236
return import('Components/App');

0 commit comments

Comments
 (0)