Skip to content

Commit

Permalink
fix: encode overlay options correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
malcolm-kee committed May 6, 2023
1 parent 6c017eb commit 2132c30
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/Server.js
Original file line number Diff line number Diff line change
Expand Up @@ -672,6 +672,7 @@ class Server {
typeof client.overlay === "boolean"
? String(client.overlay)
: JSON.stringify({
...client.overlay,
errors: encodeOverlaySettings(client.overlay.errors),
warnings: encodeOverlaySettings(client.overlay.warnings),
runtimeErrors: encodeOverlaySettings(
Expand Down Expand Up @@ -2656,6 +2657,7 @@ class Server {
"overlay",
typeof overlayConfig === "object"
? {
...overlayConfig,
errors:
overlayConfig.errors &&
encodeOverlaySettings(overlayConfig.errors),
Expand Down

0 comments on commit 2132c30

Please sign in to comment.