Skip to content

Commit

Permalink
Disable the xstate inspector outside localhost
Browse files Browse the repository at this point in the history
  • Loading branch information
riccardo-forina committed Nov 15, 2024
1 parent afcf0db commit 2ceefcd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/ui/src/OpenApiEditor.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ export function OpenApiEditor({
<OpenApiEditorMachineContext.Provider
logic={editorLogic}
options={{
inspect,
inspect: document.location.host === "localhost" ? inspect : undefined,
}}
>
<div
Expand Down

0 comments on commit 2ceefcd

Please sign in to comment.