Update rust-machine.ts

This commit is contained in:
rewin
2024-02-19 21:45:10 +03:00
parent 220a3d3a62
commit 53b9e9c750
+1 -1
View File
@@ -120,7 +120,7 @@ function apply_muts(
}
}
document.addEventListener('inspector-dom-changed', (event: CustomEvent) => {
document.addEventListener('inspector-dom-changed', (event) => {
// Cast the event to the InspectorDomChanged type to access its details in TypeScript
const customEvent = event as InspectorDomChanged;
// Now you can access the detail property, which is either a string or null