From 53b9e9c7501e5e08bb8fb924fa008701e15535e3 Mon Sep 17 00:00:00 2001 From: rewin Date: Mon, 19 Feb 2024 21:45:10 +0300 Subject: [PATCH] Update rust-machine.ts --- studio-frontend/src/rust-machine.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/studio-frontend/src/rust-machine.ts b/studio-frontend/src/rust-machine.ts index 91393fb..780b950 100644 --- a/studio-frontend/src/rust-machine.ts +++ b/studio-frontend/src/rust-machine.ts @@ -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