The application runs on the main thread through the compiled _wasm_bridge.
@@ -58,6 +59,11 @@
Console output
if (entry) {
document.getElementById('loader-title').textContent = entry.replaceAll('_', ' ');
document.title = `${entry} — Direct MicroPython`;
+ // The same example in Workbench: editable, runnable in its
+ // simulator, and one connect away from a board.
+ const workbench = document.getElementById('workbench-link');
+ workbench.href = `https://pydevices.github.io/workbench/?vm=1&example=${encodeURIComponent(entry)}`;
+ workbench.hidden = false;
}