Skip to content

Commit

Permalink
fix: work around a Chrome crash with large payloads
Browse files Browse the repository at this point in the history
Fixes #62.
  • Loading branch information
nornagon committed Sep 22, 2020
1 parent 3effbae commit c226d75
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ui.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ class Driver {
fetch("/plot", {
method: "POST",
headers: { "Content-Type": "application/json" },
body: JSON.stringify(plan.serialize()),
body: new Blob([ JSON.stringify(plan.serialize()) ], { type: 'application/json' })
});
}

Expand Down

0 comments on commit c226d75

Please sign in to comment.